This is the mail archive of the gdb@sources.redhat.com 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: Debug code in data section in gdb


"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."
>


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