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);
|
module = DEBUG_FindModuleByAddr((void*)DEBUG_ToLinear(addr), DMT_UNKNOWN);
|
||||||
if (module) {
|
if (module) {
|
||||||
char* ptr = strrchr(module->module_name, '/');
|
char *p, *name = module->module_name;
|
||||||
|
if ((p = strrchr(name, '/'))) name = p + 1;
|
||||||
if (!ptr++) ptr = module->module_name;
|
if ((p = strrchr(name, '\\'))) name = p + 1;
|
||||||
snprintf( modbuf, sizeof(modbuf), " in %s", ptr);
|
snprintf( modbuf, sizeof(modbuf), " in %s", name);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
modbuf[0] = '\0';
|
modbuf[0] = '\0';
|
||||||
|
|
Loading…
Reference in New Issue