From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: Andrew Morton <akpm@zip.com.au>,
Eli Zaretskii <eliz@is.elta.co.il>,
gdb@sources.redhat.com
Subject: Re: bitwise operations on registers
Date: Wed, 27 Mar 2002 14:55:00 -0000 [thread overview]
Message-ID: <20020327175529.A20127@nevyn.them.org> (raw)
In-Reply-To: <3CA23C97.10209@cygnus.com>
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 = <blah>
> >(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
prev parent reply other threads:[~2002-03-27 22:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-10 23:50 Andrew Morton
2002-03-11 3:04 ` Eli Zaretskii
2002-03-11 7:35 ` Andrew Cagney
2002-03-11 7:39 ` Daniel Jacobowitz
2002-03-14 19:12 ` Andrew Cagney
[not found] ` <3C9173AD.E2FBA5DA@zip.com.au>
2002-03-14 21:03 ` Daniel Jacobowitz
2002-03-27 13:43 ` Andrew Cagney
2002-03-27 14:55 ` Daniel Jacobowitz [this message]
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=20020327175529.A20127@nevyn.them.org \
--to=drow@mvista.com \
--cc=ac131313@cygnus.com \
--cc=akpm@zip.com.au \
--cc=eliz@is.elta.co.il \
--cc=gdb@sources.redhat.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