Only display filenames when showing addresses.
This commit is contained in:
parent
41226dba28
commit
064cce0ea2
|
@ -712,10 +712,10 @@ const char * DEBUG_FindNearestSymbol( const DBG_ADDR *addr, int flag,
|
|||
|
||||
module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN);
|
||||
if (module) {
|
||||
char* ptr = strrchr(module->module_name, '/');
|
||||
|
||||
if (!ptr++) ptr = module->module_name;
|
||||
snprintf( modbuf, sizeof(modbuf), " in %s", ptr);
|
||||
char *p, *name = module->module_name;
|
||||
if ((p = strrchr(name, '/'))) name = p + 1;
|
||||
if ((p = strrchr(name, '\\'))) name = p + 1;
|
||||
snprintf( modbuf, sizeof(modbuf), " in %s", name);
|
||||
}
|
||||
else
|
||||
modbuf[0] = '\0';
|
||||
|
|
Loading…
Reference in New Issue