mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
* gdb.mi/mi-var-display.exp: Check for the existence of $fp
before using it.
This commit is contained in:
@ -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>
|
2012-05-04 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* gdb.base/set-noassign.exp: New test.
|
* gdb.base/set-noassign.exp: New test.
|
||||||
|
@ -614,9 +614,13 @@ mi_gdb_test "-var-create a1 * a" \
|
|||||||
"\\^done,name=\"a1\",numchild=\"0\",value=\".*\",type=\"char\".*" \
|
"\\^done,name=\"a1\",numchild=\"0\",value=\".*\",type=\"char\".*" \
|
||||||
"create local variable a1"
|
"create local variable a1"
|
||||||
|
|
||||||
|
if { [info exists fp] } {
|
||||||
mi_gdb_test "-var-create a2 $fp a" \
|
mi_gdb_test "-var-create a2 $fp a" \
|
||||||
"\\^done,name=\"a2\",numchild=\"0\",value=\".*\",type=\"int\".*" \
|
"\\^done,name=\"a2\",numchild=\"0\",value=\".*\",type=\"int\".*" \
|
||||||
"create variable a2 in different scope"
|
"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} {
|
#gdbtk_test c_variable-7.81 {create variables in different scopes} {
|
||||||
# set a1 [gdb_variable create -expr a]
|
# set a1 [gdb_variable create -expr a]
|
||||||
|
Reference in New Issue
Block a user