Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* User-defined commands and thread/frame changes
@ 2008-06-18 11:33 Vladimir Prus
  2008-06-18 11:50 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Vladimir Prus @ 2008-06-18 11:33 UTC (permalink / raw)
  To: gdb


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? 

Thanks,
Volodya


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: User-defined commands and thread/frame changes
  2008-06-18 11:33 User-defined commands and thread/frame changes Vladimir Prus
@ 2008-06-18 11:50 ` Pedro Alves
  2008-06-18 11:55   ` Vladimir Prus
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2008-06-18 11:50 UTC (permalink / raw)
  To: gdb; +Cc: Vladimir Prus

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: User-defined commands and thread/frame changes
  2008-06-18 11:50 ` Pedro Alves
@ 2008-06-18 11:55   ` Vladimir Prus
  0 siblings, 0 replies; 3+ messages in thread
From: Vladimir Prus @ 2008-06-18 11:55 UTC (permalink / raw)
  To: gdb

Pedro Alves wrote:

> 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?

The mail where I wonder how common are such commands is:

        http://dev.eclipse.org/mhonarc/lists/dsdp-dd-dev/msg01456.html
 
> 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.

Well, do breakpoint commands exactly count -- as in non-stop mode,
after we're done with breakpoint commands, the thread and frame are restored
to user-specified ones?

- Volodya





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-18 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-18 11:33 User-defined commands and thread/frame changes Vladimir Prus
2008-06-18 11:50 ` Pedro Alves
2008-06-18 11:55   ` Vladimir Prus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox