Christian Falch writes:
> Hi, I am trying to set a breakpoint in my eventloop to make GDB break whenever
> event-eType == frmLoadEvent. GDB keeps on breaking without testing this
> condition!
You're quite right. There's a bug in the prc-tools gdb patches which
prevents gdb from looking up breakpoints in its breakpoint table; hence
all breakpoints turn into vanilla "unknown trap" breaks.
> Does anybody know how to set conditions with GDB that really works?
I've now fixed this in the gdb 4.18 patches. The relevant diff is in
gdb-4.18/gdb/config/m68k/tm-m68kpalmos.h: change
#define DECR_PC_AFTER_BREAK 2
to
#define DECR_PC_AFTER_BREAK 0
Hmmm... I always wondered why it said `Program received signal SIGTRAP,
Trace/breakpoint trap.' instead of `Breakpoint 1, EventLoop ()'. :-)
Thanks for pointing this out.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html.