[coldfire-gnu-discuss] GDB freeze when steping into a loop with P&E BDM

Carlos O'Donell carlos at codesourcery.com
Wed Jun 1 14:38:50 UTC 2011


On 5/23/2011 5:52 AM, Stephane Franck Rey wrote:
> Hi Carlos,
>
> Attached is a zip including my example project.
>
> I've debugged my example code using gdb command line and found the
> same problem excluding then an IDE problem. Below are my  tests
> results details but to summarize here is what I've seen:
>
> 1. invoking gdb, setting breakpoints, running the program with
> command 'continue' The program starts but doesn't stop on breakpoint,
> I have to CTRL+C to stop it and could see then it is "halted" on line
> 57 (for ...). Displaying data 'i' shows GDB has reached an
> intermediate value loop iterations before halting.  (several tests :
> i=23468, 37406, 24028, ...) When continuing again, then it stops to
> the first breakpoint line 66 correctly
>
> 2. When stopped on 1st breakpoint on line 66, I seize 'next' command
> and can stop on each line until line 68 (2nd breakpoint : for ...).
> Then from line 68 the program "halts" again and GDB seems to be
> crashed this time I can't CTRL+C. I have to kill GDB and restart it.
>
> 3. An other test is made when reaching breakpoint on line 68. I step
> by assembly instruction and it works perfectly. If after several
> steps (i=2 or 3) I 'continue' the program, then it stops correctly to
> the line 66 showing that the program works and reached the 2nd
> forever main loop iteration.

Thank you for the accurate test case, unfortunately I don't recognize 
this failure as anything we've fixed recently. I've submitted an 
internal ticket for our team to review this issue.

We are always interested in fixing problems, but as a Lite edition user 
I can't guarantee an immediate fix.

Cheers,
Carlos.
-- 
Carlos O'Donell
Mentor Graphics / CodeSourcery
carlos at codesourcery.com
+1 (613) 963 1026



More information about the coldfire-gnu-discuss mailing list