breakpoint on non-function symbol
Bahadir Balban
bahadir.balban@gmail.com
Thu Feb 1 11:26:00 GMT 2007
On 2/1/07, Andreas Schwab <schwab@suse.de> wrote:
> "Bahadir Balban" <bahadir.balban@gmail.com> writes:
>
> > Is it possible to put a breakpoint on a symbol that is not a function?
>
> You can put a breakpoint at any address with the "break *ADDR" syntax.
>
> Andreas.
The problem is the address is not known in advance, so I had to rely
on the symbol. Anyway, I fixed it in assembler by:
.global symname;
.type symname, function;
.equ symname, addr
rather than including it in the linker script.
Thanks,
Bahadir
More information about the Gdb
mailing list