Patch for bud ID 1550 (patch now attached)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Sorry, my previous message didn't have the patch attached.)

This patch makes winedbg display only the filename when it shows 
addresses, instead of erroneously showing the full path. The problem 
relied in the use of strrchr() with a Unix-style forward-slash (/) instead 
of a Win32-style backslash.

ChangeLog:
* winedbg now only displays filenames when showing addresses

-------------------------------------------
Catalin Patulea           VV Volunteer 2002
http://vv.carleton.ca/~catalins/
catalins@vv.carleton.ca
                                 VV Rocks!!
Index: wine/programs/winedbg/hash.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/hash.c,v
retrieving revision 1.7
diff -u -r1.7 hash.c
--- wine/programs/winedbg/hash.c	19 Feb 2003 03:41:48 -0000	1.7
+++ wine/programs/winedbg/hash.c	28 Jun 2003 02:09:59 -0000
@@ -712,7 +712,8 @@
 
     module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN);
     if (module) {
-       char*	ptr = strrchr(module->module_name, '/');
+       char*	ptr = strrchr(module->module_name, (module->module_name[1] == ':') ? '\\' : '/');
 
        if (!ptr++) ptr = module->module_name;
        snprintf( modbuf, sizeof(modbuf), " in %s", ptr);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux