Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Sp3cial K" <ikiwibebe@hotmail.com>
To: gdb@sources.redhat.com
Subject: gdb cannot set registers in frames
Date: Wed, 07 Dec 2005 01:18:00 -0000	[thread overview]
Message-ID: <BAY105-F2394A54832EBCFE2639B96BA430@phx.gbl> (raw)

Hi,

I've encountered this strangeness a couple of times, so this should be 
easily reproduced.  If not, I'll post a test sample.

The gdb version is 5.3...
1. switch to a frame other than the inner-most frame (f 1, f 2, f 3, etc... 
just not f 0)
2. print register
3. set registers (particularly ebp and eip) to some other value
4. print register, what shows here is the value from step 2 (the set command 
from step 3 did not change the register)

However, if you switch to the inner-most frame (f 0), then setting the 
register will change the register value.

Please help!

~k



             reply	other threads:[~2005-12-07  1:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-07  1:18 Sp3cial K [this message]
2005-12-07  2:30 ` Daniel Jacobowitz

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=BAY105-F2394A54832EBCFE2639B96BA430@phx.gbl \
    --to=ikiwibebe@hotmail.com \
    --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