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]

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


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