diff options
author | Yao Qi <yao@codesourcery.com> | 2014-08-07 16:10:51 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2014-08-24 20:21:40 +0800 |
commit | 3881fb67b7017669b3acaba919914954c16270a8 (patch) | |
tree | fe0950ce3fb0e3e6bd1873ecc0d69131b0ed1e0c /gdb/testsuite/gdb.guile | |
parent | ca71f0dbc6c2315cc17c79d53ec6e902e10eb438 (diff) | |
download | gdb-3881fb67b7017669b3acaba919914954c16270a8.zip gdb-3881fb67b7017669b3acaba919914954c16270a8.tar.gz gdb-3881fb67b7017669b3acaba919914954c16270a8.tar.bz2 |
set print symbol off in py-value.exp and scm-value.exp
I see the following fails on arm-none-eabi target,
print sn^M
$14 = 0x0 <_ftext>^M
(gdb) FAIL: gdb.python/py-value.exp: print sn
print sn^M
$14 = 0x0 <_ftext>^M
(gdb) FAIL: gdb.guile/scm-value.exp: print sn
as <_ftext> is unexpected. This patch is to set print symbol off to
avoid printing this.
gdb/testsuite:
2014-08-24 Yao Qi <yao@codesourcery.com>
* gdb.guile/scm-value.exp (test_lazy_strings): Set print
symbol off.
* gdb.python/py-value.exp (test_lazy_strings): Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.guile')
-rw-r--r-- | gdb/testsuite/gdb.guile/scm-value.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.guile/scm-value.exp b/gdb/testsuite/gdb.guile/scm-value.exp index 91e1a56..ae80d1b 100644 --- a/gdb/testsuite/gdb.guile/scm-value.exp +++ b/gdb/testsuite/gdb.guile/scm-value.exp @@ -219,7 +219,11 @@ proc test_lazy_strings {} { "= const char \*." "Test lazy-string type name equality" gdb_test "gu (print (value-type sptr))" \ "= const char \*." "Test string type name equality" + + # Prevent symbol on address 0x0 being printed. + gdb_test_no_output "set print symbol off" gdb_test "print sn" "0x0" + gdb_scm_test_silent_cmd "gu (define snptr (history-ref 0))" \ "lazy strings: get snptr value from history" gdb_test "gu (define snstr (value->lazy-string snptr #:length 5))" \ |