mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
winedbg: simplify some code.
This commit is contained in:
parent
4880c586d8
commit
56dcea4d16
1 changed files with 3 additions and 7 deletions
|
@ -432,11 +432,10 @@ enum dbg_line_status symbol_get_function_line_status(const ADDRESS* addr)
|
|||
{
|
||||
IMAGEHLP_LINE il;
|
||||
DWORD disp;
|
||||
ULONG64 disp64, start, size;
|
||||
ULONG64 disp64, start;
|
||||
DWORD lin = (DWORD)memory_to_linear_addr(addr);
|
||||
char buffer[sizeof(SYMBOL_INFO) + 256];
|
||||
SYMBOL_INFO* sym = (SYMBOL_INFO*)buffer;
|
||||
struct dbg_type type;
|
||||
|
||||
il.SizeOfStruct = sizeof(il);
|
||||
sym->SizeOfStruct = sizeof(SYMBOL_INFO);
|
||||
|
@ -466,11 +465,8 @@ enum dbg_line_status symbol_get_function_line_status(const ADDRESS* addr)
|
|||
|
||||
if (symbol_get_debug_start(sym->ModBase, sym->TypeIndex, &start) && lin < start)
|
||||
return dbg_not_on_a_line_number;
|
||||
type.module = sym->ModBase;
|
||||
type.id = sym->TypeIndex;
|
||||
if (!types_get_info(&type, TI_GET_LENGTH, &size) || size == 0)
|
||||
size = 0x100000;
|
||||
if (il.FileName && il.FileName[0] && disp < size)
|
||||
if (!sym->Size) sym->Size = 0x100000;
|
||||
if (il.FileName && il.FileName[0] && disp < sym->Size)
|
||||
return (disp == 0) ? dbg_on_a_line_number : dbg_not_on_a_line_number;
|
||||
|
||||
return dbg_no_line_info;
|
||||
|
|
Loading…
Reference in a new issue