This is the mail archive of the gdb@sourceware.org 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: breakpoint on non-function symbol


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


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