gdb.base/{prologue,symbol-alias}.exp C++ify
authorPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 22:33:42 +0000 (23:33 +0100)
committerPedro Alves <pedro@palves.net>
Thu, 17 Sep 2020 23:07:41 +0000 (00:07 +0100)
commita8129512f6cd2ce6cbf379f3bec00fe41c304a43
tree297a93fffb7484c8a67c6567e6b3c5c4fef78b63
parenta83cdcb636a661fe0070160d58b69a27be9ae079
gdb.base/{prologue,symbol-alias}.exp C++ify

Make these testcases work when compiled as C++ programs.

These testcases use the alias attribute, which requires passing in the
target function's mangled name in C++.  To avoid having to figure out
how the functions are mangled, explicitly specify a linkage name.
This is preferred over 'extern "C"' because that doesn't work with
static functions.

gdb/testsuite/ChangeLog:

* gdb.base/prologue.c [__cplusplus] (marker): Explicitly specify
linkage name.
* gdb.base/prologue.exp: Use print /d.
* gdb.base/symbol-alias.exp: Handle C++ output.
* gdb.base/symbol-alias2.c: Handle C++ output.
[__cplusplus] (func): Explicitly specify linkage name.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/prologue.c
gdb/testsuite/gdb.base/prologue.exp
gdb/testsuite/gdb.base/symbol-alias.exp
gdb/testsuite/gdb.base/symbol-alias2.c
This page took 0.027076 seconds and 4 git commands to generate.