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:
Sergei Golubchik 2013-12-12 18:14:14 +01:00
parent c47dd98f90
commit ca083a764f

View File

@ -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');