This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Ensure correct symbol-file when attaching to a (remote) process
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Raphael Zulliger <zulliger at indel dot ch>
- Cc: gdb at sourceware dot org
- Date: Fri, 21 Dec 2012 17:11:14 +0100
- Subject: Re: Ensure correct symbol-file when attaching to a (remote) process
- References: <50D3FC31.1020103@indel.ch>
On Fri, 21 Dec 2012 07:05:37 +0100, Raphael Zulliger wrote:
> Is there really no such mechanism in GDB?
There is no such reliable mechanism in general.
One could verify build-id in the target, probably that the build-id note is at
the same VMA as present in the local symbol file.
But then also many binaries/compilers do not provide build-id by default (ld
option --build-id).
Jan