aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.cp/class2.exp
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2014-08-14 10:51:10 +0800
committerYao Qi <yao@codesourcery.com>2014-08-15 07:55:16 +0800
commit775e0f048171cae1cbe0d8bfb230204142e06834 (patch)
tree4cdf0f41db494567c77d449dc74a844e3e0218ea /gdb/testsuite/gdb.cp/class2.exp
parent783cecc8b3b4aeb00b901cdc0883f93839ac222b (diff)
downloadgdb-775e0f048171cae1cbe0d8bfb230204142e06834.zip
gdb-775e0f048171cae1cbe0d8bfb230204142e06834.tar.gz
gdb-775e0f048171cae1cbe0d8bfb230204142e06834.tar.bz2
Set print symbol off in some tests
GDB in default prints the symbol associated on an address, and tests assume that there is no symbol on address zero. However, on bare metal target, address may be mapped to zero and there may be a symbol. Then, some tests fail as below: print const_cast<void *> (0)^M $8 = (void *) 0x0 <_ftext>^M (gdb) FAIL: gdb.cp/casts.exp: const_cast of 0 p acp->c1^M $9 = (A *) 0x0 <_ftext>^M (gdb) FAIL: gdb.cp/class2.exp: p acp->c1 This patch is to set print symbol off in these tests, like what I did previously https://sourceware.org/ml/gdb-patches/2014-07/msg00257.html gdb/testsuite: 2014-08-15 Yao Qi <yao@codesourcery.com> * gdb.cp/casts.exp: Set print symbol off. * gdb.cp/class2.exp: Likewise. * gdb.cp/overload.exp: Likewise. * gdb.cp/templates.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.cp/class2.exp')
-rw-r--r--gdb/testsuite/gdb.cp/class2.exp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp
index 82faac5..eae5922 100644
--- a/gdb/testsuite/gdb.cp/class2.exp
+++ b/gdb/testsuite/gdb.cp/class2.exp
@@ -28,9 +28,10 @@ if {[prepare_for_testing $testfile.exp $testfile $srcfile {debug c++}]} {
return -1
}
-# Start with "set print object off".
+# Start with "set print object off" and "set print symbol off".
gdb_test_no_output "set print object off"
+gdb_test_no_output "set print symbol off"
if ![runto_main] then {
perror "couldn't run to main"