gdb.base/nested-addr.{c,exp} C++ify
authorPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 22:33:40 +0000 (23:33 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 23:04:29 +0000 (00:04 +0100)
commit52626c58267233b0e6a9807a80945467a019013b
tree51c05b3972ba31b38efff9e74217d38afb60e52d
parent52bb090268881cfa1ab615273e281610935f2f95
gdb.base/nested-addr.{c,exp} C++ify

Adjust gdb.base/nested-addr.exp to let the testcase build and run as a
C++ program.  "print /d" is used so we get "= 1" instead of "= true"
in C++ mode.

gdb/testsuite/ChangeLog:

* gdb.base/nested-addr.c (main): Add cast.
* gdb.base/nested-addr.exp: Use "print /d".
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/nested-addr.c
gdb/testsuite/gdb.base/nested-addr.exp