From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25529 invoked by alias); 18 Jun 2008 11:50:45 -0000 Received: (qmail 25518 invoked by uid 22791); 18 Jun 2008 11:50:44 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 18 Jun 2008 11:50:27 +0000 Received: (qmail 27173 invoked from network); 18 Jun 2008 11:50:25 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 18 Jun 2008 11:50:25 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: User-defined commands and thread/frame changes Date: Wed, 18 Jun 2008 11:50:00 -0000 User-Agent: KMail/1.9.9 Cc: Vladimir Prus References: <200806181533.22276.vladimir@codesourcery.com> In-Reply-To: <200806181533.22276.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806181250.24708.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00178.txt.bz2 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