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

Alexandre Julliard julliard at winehq.org
Thu Aug 27 10:31:47 CDT 2009


Module: wine
Branch: master
Commit: fe8f6b80681a8a92973493e2408b8a1c2537857b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=fe8f6b80681a8a92973493e2408b8a1c2537857b

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Wed Aug 26 14:18:07 2009 -0400

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

---

 programs/winedbg/dbg.y |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y
index c1dcfd1..9b28fd1 100644
--- a/programs/winedbg/dbg.y
+++ b/programs/winedbg/dbg.y
@@ -182,8 +182,9 @@ list_arg:
     | pathname ':' tNUM	        { $$.FileName = $1; $$.LineNumber = $3; }
     | identifier	        { symbol_get_line(NULL, $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, & $$); }
+    | '*' expr_lvalue	        { DWORD disp; ADDRESS64 addr; $$.SizeOfStruct = sizeof($$);
+                                  types_extract_as_address(&$2, &addr);
+                                  SymGetLineFromAddr(dbg_curr_process->handle, (unsigned long)memory_to_linear_addr(& addr), &disp, & $$); }
     ;
 
 run_command:




More information about the wine-cvs mailing list