gdb is breaking at wrong locations

David Knuth dknuth@intellibot.cc
Fri Sep 27 12:02:00 GMT 2002


Hi,

We've got an m68k-coff tool chain to develop for and debug a 68332 
board via BDM.  I'm using gdb 4.17 and an ICD BDM pod.  Today, I 
noticed that it is not stopping at the set break points.  It is 
stopping about 6 lines after it should, thus it is stopping at times 
when I don't expect it to.  All the break points are at lines the are 
the else of an if condition and all are a return error; statement.  
Also, gdb is crashing frequently, or at least it's telling me there's a 
SIGBUS fault and it cannot proceed.

1) Are there somethings I should look out for when setting break 
points?  Any no-nos?

2) Can I/ should I upgrade to a later version of GDB?  Will a newer 
version work with the older gcc/as/ld/ar tools I'm using now?

As a side note, I've noticed that if I remove the parallel port 
extension cable between the laptop and BDM pod, the number of crashes 
decreases.  The problem with not breaking at the right location does 
not go away, however.

David

========================================================
David Knuth     dknuth@intellibot.cc     (804) 543-2703
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1128 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20020927/6c07852e/attachment.bin>


More information about the Gdb mailing list