Red Hat Bugzilla – Bug 490778
bug-buddy (gnome-breakpad) ignores build-id debuginfo
Last modified: 2009-04-05 13:09:52 EDT
Created attachment 335617 [details]
build-id patch against bug-buddy 2.26.0
When a program crashes bug-buddy checks to see if debuginfo is available before attempting a gdb backtrace. Unfortunately it only checks for embedded debuginfo and debuginfo specified by an ELF .gnu_debuglink section - it doesn't know about the GNU_BUILD_ID note.
The attached patch enhances elf_has_debug_symbols() to check for GNU_BUILD_ID debuginfo files as well.
This is required for using bug-buddy with debuginfofs (see http://fedoraproject.org/wiki/Features/DebuginfoFS for details).
Patch is against bug-buddy-2.26.0 - I haven't attempted to apply it to any earlier versions.
I should probably push this upstream, once I figure out if the gdb build-id support is present in upstream gdb.
Could be simplified by using
instead of g_build_filename, but otherwise looks fine.
Feel free to put that patch into our rpm.
Ok, seems you didn't want to build it yourself...I've done that for you now.
Sorry - got really busy with Beta stuff for a while there. Thanks for applying the patch!
AFAICT build-id support is available in the upstream tools (gdb, ld, etc.) so it makes sense to send this patch upstream as well. I'll link to the GNOME bug report once it's available.