Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* breakpoint on non-function symbol
@ 2007-02-01 10:48 Bahadir Balban
  2007-02-01 11:01 ` Andreas Schwab
  0 siblings, 1 reply; 5+ messages in thread
From: Bahadir Balban @ 2007-02-01 10:48 UTC (permalink / raw)
  To: gdb

Hi,

Is it possible to put a breakpoint on a symbol that is not a function?

I have two elf images, the first is a loader that contains the second
image in itself. I want to refer to a symbol defined in the second
from the first. To achieve that, I extracted the symbol from second
and defined it as a variable in the linker script of the first. When I
break on  the symbol gdb complains its not a function. I could
possibly define it as a function in assembler but I've done enough
tweaks; don't want to add more unless you have a better suggestion.

Thanks,
Bahadir


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-01 23:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-01 10:48 breakpoint on non-function symbol Bahadir Balban
2007-02-01 11:01 ` Andreas Schwab
2007-02-01 11:26   ` Bahadir Balban
2007-02-01 12:20     ` Daniel Jacobowitz
2007-02-01 23:21       ` Bahadir Balban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox