This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Debug code in data section in gdb
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: gdb at sources dot redhat dot com, zhangtao at cc dot gatech dot edu
- Date: Tue, 22 Jun 2004 14:19:36 -0400 (EDT)
- Subject: Re: Debug code in data section in gdb
> Is there a way to ask gdb to set break points at data section?
> Or is there some other work around?
If you know the exact address where you want to set the breakpoint,
you can do:
(gdb) break *0x12345678
Be sure to do this after you've copied your code into the data
section, not before.
Michael C