mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
Dynamic memory tracking, update function printing
Print only demangled name if it succeeded. Related-To: NEO-6837 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6e9c890890
commit
8d5c674110
@@ -41,7 +41,11 @@ void collectBacktrace() {
|
||||
char *realname;
|
||||
int status;
|
||||
realname = abi::__cxa_demangle(info.dli_sname, 0, 0, &status);
|
||||
printf("%s %s\n", functions[symbolId], realname);
|
||||
if (realname) {
|
||||
printf("%s %s\n", info.dli_fname, realname);
|
||||
} else {
|
||||
printf("%s %s\n", functions[symbolId], info.dli_sname);
|
||||
}
|
||||
free(realname);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user