public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Problem with setting register value using MI interface
@ 2007-10-25 17:48 Grzegorz Cieslewski
  2007-10-25 18:00 ` Vladimir Prus
  0 siblings, 1 reply; 6+ messages in thread
From: Grzegorz Cieslewski @ 2007-10-25 17:48 UTC (permalink / raw)
  To: gdb

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"
GDB>> (gdb)
GDB<< set $r1=1
GDB>> &"set $r1=1\n"
GDB>> &"Cannot access memory at address 0x1\n"
GDB>> ^error,msg="Cannot access memory at address 0x1"
GDB>> (gdb)


-- 
=====================================================
Grzegorz Cieslewski
Research Assistant
High-performance Computing & Simulation (HCS) Research Laboratory
University of Florida, Dept. of Electrical and Computer Engineering
330 Benton Hall, Gainesville, FL, 32611-6200
Phone: (352) 392-9041
Email: cieslewski@hcs.ufl.edu
Web: www.hcs.ufl.edu
=====================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-26 14:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25 17:48 Problem with setting register value using MI interface Grzegorz Cieslewski
2007-10-25 18:00 ` Vladimir Prus
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).