Commit ca083a76 authored by Sergei Golubchik's avatar Sergei Golubchik

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)
parent c47dd98f
...@@ -153,6 +153,10 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc) ...@@ -153,6 +153,10 @@ int my_addr_resolve(void *ptr, my_addr_loc *loc)
while (*s != ':') while (*s != ':')
s++; s++;
*s++= 0; *s++= 0;
if (strcmp(loc->file, "??") == 0)
return 1;
loc->line= 0; loc->line= 0;
while (isdigit(*s)) while (isdigit(*s))
loc->line = loc->line * 10 + (*s++ - '0'); loc->line = loc->line * 10 + (*s++ - '0');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment