core dump build id
Jeffrey Chen <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CY4PR13MB14140C5384111B9FA715EEFCC7A80@CY4PR13MB1414.namprd13.prod.outlook.com> |
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