app: in GimpBacktrace Windows backend, avoid bogus symbol addresses

In the GimpBacktrace Windows backend, avoid reporting meaningless
symbol addresses when failing to retrieve meaningful ones.
Unfortunately, it seems that we never get symbol addresses for
symbols that have debug information, which negatively affects the
log viewer's call graph.  We're going to have to work around this.

(cherry picked from commit 52772cf3ff)
This commit is contained in:
Ell
2018-10-10 09:58:29 -04:00
parent ca8bbd2e3d
commit d0fdff7117

View File

@ -668,7 +668,7 @@ gimp_backtrace_get_address_info (guintptr address,
g_strlcpy (info->symbol_name, symbol_info->Name,
sizeof (info->symbol_name));
info->symbol_address = address - offset;
info->symbol_address = offset ? address - offset : 0;
result = TRUE;
}