Debug code in data section in gdb

Michael Elizabeth Chastain
Tue Jun 22 18:19:00 GMT 2004

> 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

More information about the Gdb mailing list