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

> I think semantics of it is to skip all other breakpoints...

The skip breakpoints is another problem, actually :-)
There is a preference to "Skip breakpoints during a 'Run to Line'
operation"
So, depending on this preference you may or not skip other breakpoints.

> > Why can't run-to-line be implemented by planting a temporary hidden 
> > break point?

If you turn off all other breakpoints, that would surely work.
But if you don't turn off breakpoints, then you have to deal with
removing this temporary breakpoint if that is not the one that hit.
But that may not be too bad, considering the problem of 'advance'
I'll keep it in mind.

Thanks

Marc


> > 
> > -sergey
> > 
> > On Wed, Apr 15, 2009 at 11:28 AM, Marc Khouzam 
> > <marc.khouzam@xxxxxxxxxxxx 
> <mailto:marc.khouzam@xxxxxxxxxxxx>> wrote:
> > 
> >     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 <mailto:cdt-dev@xxxxxxxxxxx>
> >     https://dev.eclipse.org/mailman/listinfo/cdt-dev
> > 
> > 
> > 
> > 
> --------------------------------------------------------------
> ----------
> > 
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/cdt-dev
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
> 


Back to the top