winedbg: Fixed listing source of function in file.
This commit is contained in:
parent
1cb7c1a11c
commit
6f0655242c
|
@ -181,7 +181,7 @@ list_arg:
|
|||
tNUM { $$.FileName = NULL; $$.LineNumber = $1; }
|
||||
| pathname ':' tNUM { $$.FileName = $1; $$.LineNumber = $3; }
|
||||
| identifier { symbol_get_line(NULL, $1, &$$); }
|
||||
| pathname ':' identifier { symbol_get_line($3, $1, &$$); }
|
||||
| pathname ':' identifier { symbol_get_line($1, $3, &$$); }
|
||||
| '*' expr_lvalue { DWORD disp; $$.SizeOfStruct = sizeof($$);
|
||||
SymGetLineFromAddr(dbg_curr_process->handle, (unsigned long)memory_to_linear_addr(& $2.addr), &disp, & $$); }
|
||||
;
|
||||
|
|
|
@ -606,7 +606,7 @@ BOOL symbol_get_line(const char* filename, const char* name, IMAGEHLP_LINE* line
|
|||
il.SizeOfStruct = sizeof(il);
|
||||
if (!SymGetLineFromAddr(dbg_curr_process->handle, linear, &disp, &il))
|
||||
continue;
|
||||
if (filename && strcmp(line->FileName, filename)) continue;
|
||||
if (filename && strcmp(il.FileName, filename)) continue;
|
||||
if (found)
|
||||
{
|
||||
WINE_FIXME("Several found, returning first (may not be what you want)...\n");
|
||||
|
|
Loading…
Reference in New Issue