Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] move to line?

If my memory serves me right, there was no easy way to get gdb to move the PC to a particular line, as there is no "move to line" command in gdb (again, I'm going on memory). Thus, I believe the solution was to combine a CLIJump with a temporary breakpoint.

John

At 04:58 PM 8/5/2010, Andy Jin wrote:
Content-Class: urn:content-classes:message
Content-Type: multipart/alternative;
         boundary="----_=_NextPart_001_01CB34E9.69C308C0"

If the design intension of “Move to Line” is not to continue after moving the instruction pointer, then we may have a bug in the “org.eclipse.cdt.debug.mi.core.cdi.model.Targe.moveInstructionPointer()” method that it sends a CLIJump which causes gdb to continue.
 
Both “Resume at Line” and “Move at Line” send a CLIJump that’s why they behave the same now.
 

From: cdt-dev-bounces@xxxxxxxxxxx [ mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of kirk.beitz@xxxxxxxxx
Sent: Thursday, August 05, 2010 11:49 AM
To: elaskavaia.cdt@xxxxxxxxx; cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] move to line?
 
"Run To Line" has the effect of (and is probably implemented mostly by)
a] leaving the instruction pointer where it is
b] setting a temp breakpoint at the point where "Run to Line" was invoked
c] performing a continue (a la F8)
d] removing the temorary breakpoint at the end of the when any event occurs
 
i.e. if you run to line and a breakpoint is in the way, that breakpoint will be hit.
 
"Resume at Line" has the effect of:
a] setting the register of the instruction pointer to the address at the line where invoked
b] performing a continue (a la F8)
 
"Move to Line" is essectially just [a] of "Resume at line" with no continue.
 
my sense is the icons were changed because the iconography better represents the above distinctions.  notice the "tail" on the "Resume at line" icon, indicating movement away, versus the "full stop" at the bottom of the "Move to line" icon.
 
++ kirk
 
On 2010-Aug-5, at 8:39 AM, ext Alena Laskavaia wrote:


Debugger. I have a question from customer for which I don't know the answer.
"Move To Line" has been inserted (cdt 6.0) between the old "Run To
Line" and "Resume At Line".

What is the different between them?

This new entry has the same icon that the old "Resume At Line" used to have,
and "Resume At Line" has a new icon.  This use/change of iconography is a bit
confusing.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
 
++ kirk beitz ++ nokia ++ kirk.beitz@xxxxxxxxx ++
 
 
 
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev

Back to the top