diff options
author | Yao Qi <yao@codesourcery.com> | 2014-08-30 17:46:21 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-09-09 09:57:01 +0800 |
commit | 4c122fc3154566369237c6194def4bd88a074f7e (patch) | |
tree | 9cdd09ea7ef9b1bc1f07e6e86072de273f975245 /gdb | |
parent | 0a62cfe5676e271b40b5f85efeecbdd36d63a375 (diff) | |
download | gdb-4c122fc3154566369237c6194def4bd88a074f7e.zip gdb-4c122fc3154566369237c6194def4bd88a074f7e.tar.gz gdb-4c122fc3154566369237c6194def4bd88a074f7e.tar.bz2 |
Set print symbol off in mi-var-display.exp
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-display.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4d67459..d3d78d7 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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 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 # |