Commit fe8f6b80 authored by Dylan Smith's avatar Dylan Smith Committed by Alexandre Julliard

winedbg: Extract address from expression for listing source at address.

parent 739759bf
...@@ -182,8 +182,9 @@ list_arg: ...@@ -182,8 +182,9 @@ list_arg:
| pathname ':' tNUM { $$.FileName = $1; $$.LineNumber = $3; } | pathname ':' tNUM { $$.FileName = $1; $$.LineNumber = $3; }
| identifier { symbol_get_line(NULL, $1, &$$); } | identifier { symbol_get_line(NULL, $1, &$$); }
| pathname ':' identifier { symbol_get_line($1, $3, &$$); } | pathname ':' identifier { symbol_get_line($1, $3, &$$); }
| '*' expr_lvalue { DWORD disp; $$.SizeOfStruct = sizeof($$); | '*' expr_lvalue { DWORD disp; ADDRESS64 addr; $$.SizeOfStruct = sizeof($$);
SymGetLineFromAddr(dbg_curr_process->handle, (unsigned long)memory_to_linear_addr(& $2.addr), &disp, & $$); } types_extract_as_address(&$2, &addr);
SymGetLineFromAddr(dbg_curr_process->handle, (unsigned long)memory_to_linear_addr(& addr), &disp, & $$); }
; ;
run_command: run_command:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment