diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2011-07-28 10:36:40 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2011-07-28 10:36:40 +0000 |
commit | 00bd41d6bc7fc83d8fa5d739722f9d3bc3f62da1 (patch) | |
tree | 6ea7137fdf0a61a30a046a34fc8e549d3d6e2aa5 /gdb/testsuite/gdb.python/py-mi.exp | |
parent | e89702a8bdadd66330aaa605cfe571ed50f50a70 (diff) | |
download | gdb-00bd41d6bc7fc83d8fa5d739722f9d3bc3f62da1.zip gdb-00bd41d6bc7fc83d8fa5d739722f9d3bc3f62da1.tar.gz gdb-00bd41d6bc7fc83d8fa5d739722f9d3bc3f62da1.tar.bz2 |
2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
* varobj.c (value_get_print_value): Move hint check later into the
function. Comment function. Free thevalue before reusing it.
2011-07-28 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-mi.exp: Test printers returning string hint, and
also not returning a value.
* gdb.python/py-prettyprint.c: Add testcase for above.
* gdb.python/py-prettyprint.py: Add test printer for above.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-mi.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-mi.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp index b232fc3..0ad4310 100644 --- a/gdb/testsuite/gdb.python/py-mi.exp +++ b/gdb/testsuite/gdb.python/py-mi.exp @@ -284,6 +284,13 @@ mi_list_varobj_children nstype2 { { {nstype2.<error at 0>} {<error at 0>} 6 {char \[6\]} } } "list children after setting exception flag" +mi_create_varobj me me \ + "create me varobj" + +mi_gdb_test "-var-evaluate-expression me" \ + "\\^done,value=\"<error reading variable: Cannot access memory.>.*\"" \ + "evaluate me varobj" + # C++ MI tests gdb_exit if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \ |