Dylan Smith : winedbg: Fixed listing source of function in file.

Alexandre Julliard julliard at winehq.org
Mon Aug 24 10:08:58 CDT 2009


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

Author: Dylan Smith <dylan.ah.smith at gmail.com>
Date:   Sat Aug 22 01:57:37 2009 -0400

winedbg: Fixed listing source of function in file.

---

 programs/winedbg/dbg.y    |    2 +-
 programs/winedbg/symbol.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y
index 30ecdde..c1dcfd1 100644
--- a/programs/winedbg/dbg.y
+++ b/programs/winedbg/dbg.y
@@ -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, & $$); }
     ;
diff --git a/programs/winedbg/symbol.c b/programs/winedbg/symbol.c
index 3a34e61..e0553e7 100644
--- a/programs/winedbg/symbol.c
+++ b/programs/winedbg/symbol.c
@@ -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");




More information about the wine-cvs mailing list