Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] RunToLine behavior vs -exec-until

Hi Marc,

"Run to line" action in CDT simply provides a framework and it is the
backend that provides the semantics. It has never been intended to
replicate the JDT "Run to line" behaviour or provide a generic
implementation suitable for all backends. 
For CDI-GDB implementation "exec-until" was chosen as the closest
backend equivalent of "Run to line" despite the limitations you are
pointed to.

Regards,
Mikhail
-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Marc Khouzam
Sent: Wednesday, April 15, 2009 7:28 PM
To: CDT General developers list.
Subject: [cdt-dev] RunToLine behavior vs -exec-until

Hi,

CDI provides a RunToLine action.  This uses -exec-until.
While testing things for DSF-GDB I realized that -exec-until did not
behave as I expected.

#1 -exec-until will stop as soon as the current stack frame exists.
#2 -exec-until will *not* stop at the specified location if the location
is not 
    in the same stack frame as when the command was issued.

This can be read in the documentation of the 'until' command, and I
tested it too.

It seems that exec-until is not meant to be used as run-to-line (or at
least in the way run-to-line behaves in the JDT.)

The cli command 'advance' seems a bit better as it does not have problem
#2
but it does have problem #1.

Was this known?  Any comments or suggestion for DSF-GDB?
I will probably use 'advance'.
And maybe with repeating the advance command I can also address problem
#1

Thanks for any comments, especially if I'm confused about the issue.

marc
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
-- 
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.


Back to the top