https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64999
--- Comment #53 from boger at us dot ibm.com --- I was taking the approach of only fixing what was known to be broken, and I was not aware that this was broken on other platforms. Minimizing risk. I can change it for all platforms but these tests are not broken on x86 today with the pc decremented in both libbacktrace and in pprof.go and I don't understand why not so I didn't want to mess with it. I'm not sure if I understand how it would work to add an argument to callback. The call to callback happens much later after the ip_before_insn flag has been set: from inside unwind -> backtrace_pcinfo -> dwarf_fileline -> dwarf_lookup_pc -> callback. Do you mean pass this flag as an argument to each of these functions so it can be passed to callback?