Commit 3d6bd5bc 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 0d4471b0
......@@ -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');
......
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