diff mbox

[1/3] Set print symbol off in mi-var-display.exp

Message ID 1409533072-6152-2-git-send-email-yao@codesourcery.com
State New
Headers show

Commit Message

Yao Qi Sept. 1, 2014, 12:57 a.m. UTC
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-01  Yao Qi  <yao@codesourcery.com>

	* gdb.mi/mi-var-display.exp: Set print symbol off.
---
 gdb/testsuite/gdb.mi/mi-var-display.exp | 3 +++
 1 file changed, 3 insertions(+)

Comments

Yao Qi Sept. 9, 2014, 2:08 a.m. UTC | #1
Yao Qi <yao@codesourcery.com> writes:

> gdb/testsuite:
>
> 2014-09-01  Yao Qi  <yao@codesourcery.com>
>
> 	* gdb.mi/mi-var-display.exp: Set print symbol off.

Patch is pushed.  Ping patch 2/3 and 3/3.
diff mbox

Patch

diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp
index 2db4a7d..02c2212 100644
--- a/gdb/testsuite/gdb.mi/mi-var-display.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-display.exp
@@ -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 #