From: "Siva Velusamy" <siva.velusamy@gmail.com>
To: gdb@sourceware.org
Subject: info on "value being assigned to is no longer active" error
Date: Sat, 19 Jan 2008 04:12:00 -0000 [thread overview]
Message-ID: <e7dfeff00801182011n27015c9anfb444e45379971db@mail.gmail.com> (raw)
When writing to a register (msr) when the stack pointer or PC is
corrupt, gdb throws out the following error:
----
(gdb) p/x $rmsr
{ frame_register_unwind (frame=-1,regnum=33(rmsr),...) ->
*optimizedp=0 *lvalp=2 *addrp=0x84 *bufferp=[000000a0] }
{ get_frame_id (fi=0) { frame_func_unwind (fi=-1) -> 0x0 }
-> {!stack,!code,!special} }
$1 = 0xa0
(gdb) set $rmsr=0x0
{ frame_register_unwind (frame=-1,regnum=33(rmsr),...) ->
*optimizedp=0 *lvalp=2 *addrp=0x84 *bufferp=[000000a0] }
{ frame_id_p (l={!stack,!code,!special}) -> 0 }
Value being assigned to is no longer active.
-----
This sounds pretty similar to the issue reported here:
http://sourceware.org/ml/gdb/2005-05/msg00029.html
What I do not understand is why gdb is looking for a proper frame
before updating the register.
If my (admittedly cursory) examination of the code in valops.c is
correct, it appears as if gdb is looking for the frame to make sure
that it updates the value of the register if it has been stored in the
stack. Is that correct?
Thanks,
Siva
--
In the end, everything is a gag.
Charlie Chaplin
next reply other threads:[~2008-01-19 4:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-19 4:12 Siva Velusamy [this message]
2008-01-19 4:21 ` Daniel Jacobowitz
2008-01-19 4:26 ` Siva Velusamy
2008-01-19 4:43 ` 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=e7dfeff00801182011n27015c9anfb444e45379971db@mail.gmail.com \
--to=siva.velusamy@gmail.com \
--cc=gdb@sourceware.org \
/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