diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-08-27 06:33:25 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-08-27 06:33:25 +0000 |
commit | 4e22772d17868466c3d941f888d255c667abc039 (patch) | |
tree | 3e73c7bff7e149d482f5dcdc66345b4eb3e7ae80 /gdb/testsuite/gdb.mi/mi2-var-cmd.exp | |
parent | 573e8a1cd233066d864f0c0597df9e9cb689fae4 (diff) | |
download | gdb-4e22772d17868466c3d941f888d255c667abc039.zip gdb-4e22772d17868466c3d941f888d255c667abc039.tar.gz gdb-4e22772d17868466c3d941f888d255c667abc039.tar.bz2 |
gdb/
* varobj.c (varobj_create): Error if the specified frame was not found
and it is needed.
gdb/testsuite/
* gdb.mi/mi2-var-cmd.exp (create variable with invalid FRAME-ADDR): New.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi2-var-cmd.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi2-var-cmd.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp index 96d42a1..dda77bb 100644 --- a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp +++ b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp @@ -126,6 +126,11 @@ mi_gdb_test "-var-create int * int" \ "&\"Attempt to use a type name as an expression.\\\\n\".*\\^error,msg=\"mi_cmd_var_create: unable to create variable object\"" \ "create int" +# The number 0 must be an invalid frame address and linteger a local variable. +mi_gdb_test "-var-create invalidframe 0 linteger" \ + "\\^error,msg=\"Failed to find the specified frame\"" \ + "create variable with invalid FRAME-ADDR" + ##### ##### # # |