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]

Re: Ensure correct symbol-file when attaching to a (remote) process


On 12/21/2012 07:17 PM, John Gilmore wrote:
>  The best you can do in an automated way is to check the areas
> of memory that are intended to contain instructions and read-only
> data.

For bare metal targets, that's often good enough, and GDB does have
support that built in:

(gdb) help compare-sections
Compare section data on target to the exec file.
Argument is a single section name (default: all loaded sections).

A build id check would really be ideal.

-- 
Pedro Alves


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