Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Daniel Jacobowitz" <drow@false.org>
Cc: <gdb@sourceware.org>
Subject: RE: GDB support for 'Run to Line'
Date: Thu, 16 Apr 2009 07:00:00 -0000	[thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA071521C9@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <20090415195733.GA24282@caradoc.them.org>

> > Hi,
> >
> > I'm trying to figure out if GDB has support for the 'Run to Line' feature
> > of Eclipse, where the user selects a line and the inferior resumes until
> > that  line.
> >
> > GDB's 'until' does not seem to be the right choice since it only stops
> > if the location is in the same frame.
> >
> > GDB's 'advance' is better, but it stops if the current frame exists.
> 
> Isn't this just tbreak + continue?

Problem is that if another breakpoint is hit first, this temporary one
will remain and will hit later, unexpectedly to the user.  I would have to remove
that temp bp myself in that case.
 
Of course, one way to do run to line is to disable all other bps until that line is reached.
This is a preference in Eclipse, so I have to support both ways.
Now, with non-stop, I don't think disabling all bps (even for a short while) is a good 
idea anymore.  I would need to disable all bps for a particular thread only.  I don't think
GDB allows me to do this.  This was doing to be a future question of mine on the list :-)
 
But if tbreak + continue + cleanup is my best option, that is what I'll look into.
 
Thanks
 
Marc
 
 


  reply	other threads:[~2009-04-16  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-15 19:57 Marc Khouzam
2009-04-15 19:58 ` Daniel Jacobowitz
2009-04-16  7:00   ` Marc Khouzam [this message]
2009-04-15 21:22 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6D19CA8D71C89C43A057926FE0D4ADAA071521C9@ecamlmw720.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox