Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb@sourceware.org
Cc: Vladimir Prus <vladimir@codesourcery.com>
Subject: Re: User-defined commands and thread/frame changes
Date: Wed, 18 Jun 2008 11:50:00 -0000	[thread overview]
Message-ID: <200806181250.24708.pedro@codesourcery.com> (raw)
In-Reply-To: <200806181533.22276.vladimir@codesourcery.com>

A Wednesday 18 June 2008 12:33:21, Vladimir Prus wrote:
> We were discussion some issues with GDB console behaviour on Eclipse DSF
> list, and I've realized I miss one bit of information. Does anybody know of
> some concrete examples of reasonable user-defined commands that can change
> the current thread or frame?
>

Can you point me at this discussion?

I know people use things like "up" or "frame" in breakpoint commands, to
analyse the call site of a breakpoint hit and do proceed/resume/stop
decisions on that.

I've implemented (mostly as proof-of-concept, not finished) an idea of
providing a context stack (a context being selected thread a frame), and
the thread and frame commands applying to the current context, so
define or breakpoint commands don't mess with the user selected
thread and frame (those are the top level context).

-- 
Pedro Alves


  reply	other threads:[~2008-06-18 11:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-18 11:33 Vladimir Prus
2008-06-18 11:50 ` Pedro Alves [this message]
2008-06-18 11:55   ` Vladimir Prus

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=200806181250.24708.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=vladimir@codesourcery.com \
    /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