Don't print symbol on address 0x0
authorYao Qi <yao@codesourcery.com>
Fri, 11 Jul 2014 10:46:33 +0000 (18:46 +0800)
committerYao Qi <yao@codesourcery.com>
Fri, 11 Jul 2014 11:05:50 +0000 (19:05 +0800)
commit5401fde353cbd1d5d32a3fcc7721b1a29147b5ba
tree40318f9bf3500e9cd29fa524fcc8a278c17a0c98
parente76126e8d1fc8e244fbfce03bda4a41a7b7722b1
Don't print symbol on address 0x0

We see the following fails on arm-none-eabi target,

print (void*)v_signed_char^M
$190 = (void *) 0x0 <_ftext>^M
(gdb) FAIL: gdb.base/exprs.exp: print (void*)v_signed_char (print
(void*)v_signed_char)

GDB behaves correctly but the test assumes there is no symbol on
address 0x0.  This patch is set print symbol off, so that tests below
can match the address only.

gdb/testsuite:

2014-07-11  Yao Qi  <yao@codesourcery.com>

* gdb.base/exprs.exp: "set print symbol off".
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/exprs.exp