Missing file names in WINEDBG

Eric Pouech pouech-eric at wanadoo.fr
Sat Nov 13 09:10:00 CST 2004


lats a écrit :
> In the last week WINEDBG has stopped outputting the file/path and 
> linenumber of entries in the backtrace.  Does anyone know what happened?

Do you mean that either:
1/ backtraces (for a given program, in a given situation) used to provide file & line number
2/ some (random) backtraces you've seen recently don't provide file & line number

If the later, that's normal (in some cases). For addresses (in a bt) for which we don't find a function, we just print the name 
of the module and the offset from the start of the module, but no file & line number (since we don't have a function)
If the former, that's not normal. What does the attached patch do ?
A+

Index: memory.c
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/programs/winedbg/memory.c,v
retrieving revision 1.13
diff -u -u -r1.13 memory.c
--- memory.c	8 Nov 2004 20:25:55 -0000	1.13
+++ memory.c	13 Nov 2004 15:05:31 -0000
@@ -552,7 +552,7 @@
      /* grab module where symbol is. If we don't have a module, we cannot print more */
      im.SizeOfStruct = sizeof(im);
      if (!SymGetModuleInfo(dbg_curr_process->handle, isf.InstructionOffset, &im))
-        return;
+        strcmp(im.ModuleName, "<--NoModule-->");

      si->SizeOfStruct = sizeof(*si);
      si->MaxNameLen   = 256;



More information about the wine-devel mailing list