This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
breakpoint on non-function symbol
- From: "Bahadir Balban" <bahadir dot balban at gmail dot com>
- To: gdb at sourceware dot org
- Date: Thu, 1 Feb 2007 10:48:39 +0000
- Subject: breakpoint on non-function symbol
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