This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

core dump build id


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






       

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]