diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-17 23:33:42 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-18 00:07:41 +0100 |
commit | a8129512f6cd2ce6cbf379f3bec00fe41c304a43 (patch) | |
tree | 297a93fffb7484c8a67c6567e6b3c5c4fef78b63 /gdb/testsuite/gdb.python/py-section-script.c | |
parent | a83cdcb636a661fe0070160d58b69a27be9ae079 (diff) | |
download | binutils-a8129512f6cd2ce6cbf379f3bec00fe41c304a43.zip binutils-a8129512f6cd2ce6cbf379f3bec00fe41c304a43.tar.gz binutils-a8129512f6cd2ce6cbf379f3bec00fe41c304a43.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-section-script.c')
0 files changed, 0 insertions, 0 deletions