core dump build id

Jeffrey Chen cpthk@live.com
Tue Oct 25 22:25:00 GMT 2016


Hi gdb community:

I am looking into how to verify the local binaries version match with the binaries during the core dump generation. We found the way to do that is by adding build-id information into the binaries. The core dump generation will include all the build-id corresponding  with all the binaries. We could verify the build-id by using the command `$  eu-unstrip -n --core core`. However, I noticed that when gdb loads the core dump and binaries, if we provide a wrong version of the binaries, it will not complain. gdb would still load them fine without any warning. Do you know if this is a bug, or is it purposely done this way? If so, what's the reason behind it? Thanks.


Ubuntu 16.04, kernel 4.4.0
gdb 7.11.1






       


More information about the Gdb mailing list