This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/9752] MI -data-evaluate-expression prints optimized-out variable value as 0x0


------- Additional Comments From nickrob at snap dot net dot nz  2009-04-13 02:23 -------
Subject:  MI -data-evaluate-expression prints optimized-out variable value as 0x0

 > Is this patch still pending?

I probably should have confirmed the bug and changed the status to NEW but pending is not listed
as a status.  It's not been resolved in bugzilla and it's quite easy to see that it's not been
fixed: compile a simple program with function calls with -O (or -O2), stop in main using GDB
with MI and you should see something like:

-stack-list-locals 1
^done,locals=[{name="n1",value="0"},{name="n2",value="4195696"},{name="n3",value="0"},{name="ptr",value="<value optimized out>"},{name="a",value="<value optimized out>"}]
(gdb) 
-data-evaluate-expression ptr
^done,value="0x0"
(gdb) 

where (in this case) ptr and a are the arguments of function calls.



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9752

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]