From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17129 invoked by alias); 27 Mar 2002 22:55:48 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 17116 invoked from network); 27 Mar 2002 22:55:44 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 27 Mar 2002 22:55:44 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16qMKH-0005Gq-00; Wed, 27 Mar 2002 17:55:29 -0500 Date: Wed, 27 Mar 2002 14:55:00 -0000 From: Daniel Jacobowitz To: Andrew Cagney Cc: Andrew Morton , Eli Zaretskii , gdb@sources.redhat.com Subject: Re: bitwise operations on registers Message-ID: <20020327175529.A20127@nevyn.them.org> Mail-Followup-To: Andrew Cagney , Andrew Morton , Eli Zaretskii , gdb@sources.redhat.com References: <3C8CCEAF.2030803@cygnus.com> <20020311103942.A9410@nevyn.them.org> <3C916697.5060302@cygnus.com> <3C9173AD.E2FBA5DA@zip.com.au> <20020315000245.A23867@nevyn.them.org> <3CA23C97.10209@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CA23C97.10209@cygnus.com> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-03/txt/msg00285.txt.bz2 On Wed, Mar 27, 2002 at 04:41:43PM -0500, Andrew Cagney wrote: > > > >Can't really do this, but you can at least: > >define current > >((struct task_struct *)($esp & ~8191)) > >end > > > >(gdb) current > >$33 = > >(gdb) $33->pid > > You've also got: > (gdb) set $current = ($esp & ~8191) > but that is only evaluated once (If I remember right). > > The next step would be to add it to the stop-hook so it is executed > after every stop. ... or hook it up to Jim's new macro expander, perhaps? -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer