From: Vladimir Prus <ghost@cs.msu.su>
To: gdb@sources.redhat.com
Subject: Re: Problem with setting register value using MI interface
Date: Thu, 25 Oct 2007 18:00:00 -0000 [thread overview]
Message-ID: <ffqlja$our$1@ger.gmane.org> (raw)
In-Reply-To: <7aa837f80710251047h2887f641kab9f0fcdda6ebd49@mail.gmail.com>
Grzegorz Cieslewski wrote:
> Hi,
>
> I am trying to write a value to a register using MI2 interface.
> Unfortunately sometimes th -var-assign command fails and gives me
> error. Does any one know why is that?
>
> GDB<< -var-create r1 * $r1
> GDB>> ^done,name="r1",numchild="0",value="2140372880",type="uint32_t"
> GDB>> (gdb)
> GDB<< -var-info-type r1
> GDB>> ^done,type="uint32_t"
> GDB>> (gdb)
> GDB<< -var-set-format r1 hexadecimal
> GDB>> ^done,format="hexadecimal"
> GDB>> (gdb)
> GDB<< -var-evaluate-expression r1
> GDB>> ^done,value="0x7f937f90"
> GDB>> (gdb)
> GDB<< -var-info-type r1
> GDB>> ^done,type="uint32_t"
> GDB>> (gdb)
> GDB<< -var-set-format r1 hexadecimal
> GDB>> ^done,format="hexadecimal"
> GDB>> (gdb)
> GDB<< -var-assign r1 1
> GDB>> &"mi_cmd_var_assign: Could not assign expression to variable
> object\n" GDB>> ^error,msg="mi_cmd_var_assign: Could not assign expression
> to variable object"
Is this a complete output, with no commands in between? Can you reproduce
this on x86, and if so, can you post a complete reproduction recipe?
The only 'error' I immediately see on that code path is this:
if (!frame)
error (_("Value being assigned to is no longer active."));
in value_assign, but I don't think it can ever fire unless you change frames above.
- Volodya
next prev parent reply other threads:[~2007-10-25 18:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 17:48 Grzegorz Cieslewski
2007-10-25 18:00 ` Vladimir Prus [this message]
2007-10-25 18:06 ` Daniel Jacobowitz
2007-10-25 18:17 ` Vladimir Prus
2007-10-26 14:31 ` Grzegorz Cieslewski
2007-10-26 14:41 ` Grzegorz Cieslewski
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='ffqlja$our$1@ger.gmane.org' \
--to=ghost@cs.msu.su \
--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