Debug code in data section in gdb
Tao Zhang
zhangtao@cc.gatech.edu
Tue Jun 22 22:14:00 GMT 2004
"doesn't work" means the execution doens't stop at the break points...
-Tao Zhang (zhangtao@cc.gatech.edu)
On Tue, 22 Jun 2004, Andreas Schwab wrote:
> Tao Zhang <zhangtao@cc.gatech.edu> writes:
>
> > Hi, Michael
> >
> > I tried that many times, it doesn't work for me. I even played some trick
> > so that the code buffer is actually placed in code section now. It still
> > doesn't work. I am very confused. The breakpoints work just fine for other
> > code.
>
> Please define "doesn't work". What are the symptoms?
>
> > So break *0x12344657 should work?
>
> Yes. GDB does not distinguish between "code" and "data" section when
> placing a breakpoint, it's all just memory.
>
> Andreas.
>
> --
> Andreas Schwab, SuSE Labs, schwab@suse.de
> SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
> Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>
More information about the Gdb
mailing list