my_addr_resolve: don't resolve unknown addresses to ??:0(??), but return an error instead
(better to have an address in the output than ??:0)
This commit is contained in:
parent
c47dd98f90
commit
ca083a764f
@ -153,6 +153,10 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc)
|
||||
while (*s != ':')
|
||||
s++;
|
||||
*s++= 0;
|
||||
|
||||
if (strcmp(loc->file, "??") == 0)
|
||||
return 1;
|
||||
|
||||
loc->line= 0;
|
||||
while (isdigit(*s))
|
||||
loc->line = loc->line * 10 + (*s++ - '0');
|
||||
|
Loading…
x
Reference in New Issue
Block a user