# Desc: change format of bar to hex
mi_gdb_test "-var-set-format bar hexadecimal" \
"\\^done,format=\"hexadecimal\",value=\"0x849\"" \
- "set format variable bar"
+ "set format variable bar in hex"
# Test: c_variable-6.6
# Desc: value of bar with new format
mi_gdb_test "-var-set-format bar decimal" \
"\\^done,format=\"decimal\",value=\"3\"" \
- "set format variable bar"
+ "set format variable bar in decimal"
mi_gdb_test "-var-evaluate-expression bar" \
"\\^done,value=\"3\"" \
# Desc: format of variable foo
mi_gdb_test "-var-show-format foo" \
"\\^done,format=\"natural\"" \
- "show format variable foo"
+ "show format variable foo in natural"
# Test: c_variable-6.14
# Desc: value of variable foo
mi_gdb_test "-var-evaluate-expression foo" \
"\\^done,value=\"$hex\"" \
- "eval variable foo"
+ "eval variable foo in natural"
# Test: c_variable-6.15
# Desc: change format of var to octal
mi_gdb_test "-var-set-format foo octal" \
"\\^done,format=\"octal\",value=\"$octal\"" \
- "set format variable foo"
+ "set format variable foo in octal"
mi_gdb_test "-var-show-format foo" \
"\\^done,format=\"octal\"" \
- "show format variable foo"
+ "show format variable foo in octal"
# Test: c_variable-6.16
# Desc: value of foo with new format
mi_gdb_test "-var-evaluate-expression foo" \
"\\^done,value=\"\[0-7\]+\"" \
- "eval variable foo"
+ "eval variable foo in octal"
# Test: c_variable-6.17
# Desc: change value of foo
mi_gdb_test "-var-set-format foo decimal" \
"\\^done,format=\"decimal\",value=\"3\"" \
- "set format variable foo"
+ "set format variable foo decimal"
# Test: c_variable-6.18
# Desc: check new value of foo
mi_gdb_test "-var-evaluate-expression foo" \
"\\^done,value=\"3\"" \
- "eval variable foo"
+ "eval variable foo in decimal"
# Test: c_variable-6.19
mi_gdb_test "-var-evaluate-expression -f octal foo" \
"\\^done,value=\"03\"" \
- "eval variable foo in octal"
+ "eval variable -f octal foo"
mi_gdb_test "-var-show-format foo" \
"\\^done,format=\"decimal\"" \
mi_gdb_test "-var-evaluate-expression -f decimal foo" \
"\\^done,value=\"3\"" \
- "eval variable foo in decimal"
+ "eval variable -f decimal foo"
mi_gdb_test "-var-show-format foo" \
"\\^done,format=\"decimal\"" \
mi_gdb_test "-var-evaluate-expression -f nat foo" \
"\\^done,value=\"0x3\"" \
- "eval variable foo in natural"
+ "eval variable -f nat foo"
mi_gdb_test "-var-show-format foo" \
"\\^done,format=\"decimal\"" \
# Desc: change format of weird.func_ptr and weird.func_ptr_ptr
mi_gdb_test "-var-set-format weird.func_ptr hexadecimal" \
"\\^done,format=\"hexadecimal\",value=\"$hex\"" \
- "set format variable weird.func_ptr"
+ "set format variable weird.func_ptr in hex (1)"
mi_gdb_test "-var-show-format weird.func_ptr" \
"\\^done,format=\"hexadecimal\"" \
mi_gdb_test "-var-set-format weird.func_ptr_ptr hexadecimal" \
"\\^done,format=\"hexadecimal\",value=\"$hex\"" \
- "set format variable weird.func_ptr_ptr"
+ "set format variable weird.func_ptr_ptr in hex"
mi_gdb_test "-var-show-format weird.func_ptr_ptr" \
"\\^done,format=\"hexadecimal\"" \
mi_gdb_test "-var-set-format weird.func_ptr hexadecimal" \
"\\^done,format=\"hexadecimal\",value=\"$hex\"" \
- "set format variable weird.func_ptr"
+ "set format variable weird.func_ptr in hex (2)"
mi_gdb_test "-var-set-format weird.func_ptr_struct hexadecimal" \
"\\^done,format=\"hexadecimal\",value=\"$hex\"" \
mi_gdb_test "-var-set-format weird.func_ptr_ptr natural" \
"\\^done,format=\"natural\",value=\"0x0\"" \
- "set format variable weird.func_ptr_ptr"
+ "set format variable weird.func_ptr_ptr in natural"
mi_gdb_test "-var-set-format weird.u1 natural" \
"\\^done,format=\"natural\",value=\"\{...\}\"" \