* Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27790 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
dc55af6452
commit
3ddf6441ea
|
@ -81,10 +81,9 @@ dump_int_statistics(int argc, char **argv)
|
||||||
io != &sVectors[i].handler_list; io = io->next) {
|
io != &sVectors[i].handler_list; io = io->next) {
|
||||||
const char *symbol, *imageName;
|
const char *symbol, *imageName;
|
||||||
bool exactMatch;
|
bool exactMatch;
|
||||||
addr_t address, baseAddress;
|
|
||||||
|
|
||||||
status_t error = elf_debug_lookup_symbol_address((addr_t)io->func,
|
status_t error = elf_debug_lookup_symbol_address((addr_t)io->func,
|
||||||
&baseAddress, &symbol, &imageName, &exactMatch);
|
NULL, &symbol, &imageName, &exactMatch);
|
||||||
if (error == B_OK && exactMatch) {
|
if (error == B_OK && exactMatch) {
|
||||||
if (strchr(imageName, '/') != NULL)
|
if (strchr(imageName, '/') != NULL)
|
||||||
imageName = strrchr(imageName, '/') + 1;
|
imageName = strrchr(imageName, '/') + 1;
|
||||||
|
|
Loading…
Reference in New Issue