Set print symbol off in mi-var-display.exp
authorYao Qi <yao@codesourcery.com>
Sat, 30 Aug 2014 09:46:21 +0000 (17:46 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 9 Sep 2014 01:57:01 +0000 (09:57 +0800)
Hi,
I see the following fail on arm-none-eabi target,

-var-evaluate-expression -f nat foo^M
^done,value="0x3 <_ftext+2>"^M
(gdb) ^M
FAIL: gdb.mi/mi-var-display.exp: eval variable -f nat foo

the "<_ftext+2>" isn't expected in the test, so "set print symbol off"
can prevent printing it.  It is obvious and I'll commit it in three
days if no comments.

gdb/testsuite:

2014-09-09  Yao Qi  <yao@codesourcery.com>

* gdb.mi/mi-var-display.exp: Set print symbol off.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-var-display.exp

index 4d674590ea08474fe12378b92f2c7b4f3b07a313..d3d78d79ae7a8e58ddef705dd3ce7bcc98ed2f82 100644 (file)
@@ -1,3 +1,7 @@
+2014-09-09  Yao Qi  <yao@codesourcery.com>
+
+       * gdb.mi/mi-var-display.exp: Set print symbol off.
+
 2014-09-07  Gabriel Krisman Bertazi  <gabriel@krisman.be>
 
        PR gdb/17035
index 2db4a7d2fed0121dc65b99f3f1727472f64e3d8e..02c22129ecfdbd48ad99956d4f4c8184ce3bb8a7 100644 (file)
@@ -49,6 +49,9 @@ mi_run_cmd
 mi_expect_stop "breakpoint-hit" "do_children_tests" "" ".*var-cmd.c" \
        $line_dct_end { "" "disp=\"keep\"" } "run to main"
 
+# Prevent symbol on the address being printed.
+mi_gdb_test "-gdb-set print symbol off"
+
 #####       #####
 #               #
 # Display tests #