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/11738] New: -var-evaluate-expression doesn't work after removing pretty printer


Here is an example with str_list which is a linked list having a corresponding
pretty printer:

-var-create - * str_list
^done,name="var1",numchild="3",value="0x9ae2c90",type="GList
*",thread-id="1",has_more="0"
(gdb)
-enable-pretty-printing
^done
(gdb)
-var-create - * str_list
^done,name="var2",numchild="0",value="{...}",type="GList
*",thread-id="1",displayhint="array",dynamic="1",has_more="1"
(gdb)
-var-evaluate-expression var2
^done,value="{...}"
(gdb)
-var-evaluate-expression var1
^done,value="0x9ae2c90"
(gdb)
-var-set-visualizer var2 None
^done
(gdb)
-var-evaluate-expression var2
^done,value="{...}"
(gdb) 

I expect to get value="0x9ae2c90" instead of value="{...}" as the pretty printer
has been removed.

Note that -var-list-children and -var-update returns the right value, the same
than for var1, without the pretty printer.

I can restore the pretty printer, using -var-set-visualizer var2
gdb.default_visualizer.

I'm run this test with gdb version 7.0.50.20091001-cvs

-- 
           Summary: -var-evaluate-expression doesn't work after removing
                    pretty printer
           Product: gdb
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: mi
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: seb dot sfo at free dot fr
                CC: gdb-prs at sourceware dot org


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

------- 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]