GDB freeze when steping into a loop with P&E BDM

Stephane Franck Rey stephane.franck.rey at cern.ch
Fri May 20 16:12:46 UTC 2011


Hi there,

I'm trying to set a toolchain using Eclipse + GCC + Hiwave for flashing the CPU + GDB for debugging.

The current hardware is a MCF51AC128C connected to a 4.9152 MHz crystal and I'm using P&E USB-ML-12E interface (USB Multilink)

In my test code I've the following line

for (i=1; i<40000; i++){asm ("nop");};

When setting a BreakPoint on that line, GDB stops. I can resume and stop again on that line any time. Now when stopped on that line, if I Step Into or Step over this line, GDB freeze in 'Stepping' and nothing happens anymore. If I suspend the program crashed (comm. Failure), and I've to kill the gdb task to start again the communication with my BDM.


GDB SETTINGS
***********

GDB Debugger : m68k-elf-gdb

Initialize commands  :
target remote | m68k-elf-sprite pe: m51ac128Cevb-4

'Run' Commands :
set $pc=_start
br main
continue

the file m51ac128Cevb-4.xml  is a modified version of the m51ac128Cevb.xml, by changing the system clock frequency to 4915 KHz. But whatever is this parameter the GDB behavior is always the same.

Note that everything works with Codewarrior 6.3 and codewarrior 10.1 (Eclipse based), I can debug the same project and do what I want with BP in these toolchains without the same behavior observed with GDB.
So any idea on what could be wrong in my configuration ?

Cheers
Stephane


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/coldfire-gnu-discuss/attachments/20110520/1e1df5f4/attachment.html>


More information about the coldfire-gnu-discuss mailing list