mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
When a symbol name can't be resolved, return "??" as the name, rather
than "Unknown func", in order to avoid putting spaces in what ideally is a string separated by white space.
This commit is contained in:
parent
4a95df55c3
commit
56905239ae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=174222
@ -208,7 +208,7 @@ stack_symbol(vm_offset_t pc, char *namebuf, u_int buflen, long *offset)
|
||||
if (linker_search_symbol_name((caddr_t)pc, namebuf, buflen,
|
||||
offset) != 0) {
|
||||
*offset = 0;
|
||||
strlcpy(namebuf, "Unknown func", buflen);
|
||||
strlcpy(namebuf, "??", buflen);
|
||||
}
|
||||
}
|
||||
|
||||
@ -220,7 +220,7 @@ stack_symbol_ddb(vm_offset_t pc, char *namebuf, u_int buflen, long *offset)
|
||||
if (linker_ddb_search_symbol_name((caddr_t)pc, namebuf, buflen,
|
||||
offset) != 0) {
|
||||
*offset = 0;
|
||||
strlcpy(namebuf, "Unknown func", buflen);
|
||||
strlcpy(namebuf, "??", buflen);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user