diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-08 07:22:19 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-05-08 07:22:19 +0000 |
commit | 3a7341d8b6808a7de23b2f550f08fdd4870113ad (patch) | |
tree | b097b2a330da34c40f1fb44d7f5797d382513e02 /gdb | |
parent | d7333987804db4beca078f9b0afa61c8062630e0 (diff) | |
download | gdb-3a7341d8b6808a7de23b2f550f08fdd4870113ad.zip gdb-3a7341d8b6808a7de23b2f550f08fdd4870113ad.tar.gz gdb-3a7341d8b6808a7de23b2f550f08fdd4870113ad.tar.bz2 |
* gdb.mi/mi-var-display.exp: Check for the existence of $fp
before using it.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-display.exp | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ca56411..43549bf 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-05-08 Maciej W. Rozycki <macro@codesourcery.com> + + * gdb.mi/mi-var-display.exp: Check for the existence of $fp + before using it. + 2012-05-04 Tristan Gingold <gingold@adacore.com> * gdb.base/set-noassign.exp: New test. diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index c508681..b3ae2c5 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -614,9 +614,13 @@ mi_gdb_test "-var-create a1 * a" \ "\\^done,name=\"a1\",numchild=\"0\",value=\".*\",type=\"char\".*" \ "create local variable a1" -mi_gdb_test "-var-create a2 $fp a" \ +if { [info exists fp] } { + mi_gdb_test "-var-create a2 $fp a" \ "\\^done,name=\"a2\",numchild=\"0\",value=\".*\",type=\"int\".*" \ "create variable a2 in different scope" +} else { + untested "create variable a2 in different scope" +} #gdbtk_test c_variable-7.81 {create variables in different scopes} { # set a1 [gdb_variable create -expr a] |