This is the mail archive of the gdb-prs@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]

[Bug gdb/12709] Stepping on a while loop freezes the GDB (MIPSplatform)


http://sourceware.org/bugzilla/show_bug.cgi?id=12709

Pedro Alves <pedro at codesourcery dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2011.04.28 12:26:06
     Ever Confirmed|0                           |1

--- Comment #5 from Pedro Alves <pedro at codesourcery dot com> 2011-04-28 12:26:06 UTC ---
> The GDB will stop on the while loop by hitting the breakpoint. In my MIPS
> scenario, the GDB never hits the breakpoint.

> The GDB for MIPS misses the breakpoint because the breakpoint is placed on the
> 80002540:   nop
> instruction, which is not in the body of the loop.

>          bsp_start:
> 80002530:   addiu sp,sp,-24
> 80002534:   sw ra,20(sp)
> 80002538:   sw s8,16(sp)
> 8000253c:   move s8,sp
>  65           while (c < 1000);
> 80002540:   nop 

I see no branch/jump before the nop, so I take it the breakpoint would be hit
at least once, when stepping into the function.  I still don't understand what
you mean is different, as you haven't really pasted gdb session logs.

> I can not remember that I see such an "interrupt" button in any IDE. At least
> the Eclipse IDE (CDT plugin) does not seem to have it. Probably I will discuss
> the addition of the button with the Eclipse community. (my job is make the
> debugging work for the Eclipse IDE).

I'm sure there's a "stop", "pause", "interrupt" or similarly named
button/action somewhere in your IDE.  It'd be a severely crippled IDE if it
didn't have such a basic feature.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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