diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-17 23:33:43 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-18 00:09:20 +0100 |
commit | 7474326cb9441644313cb749e491bec5e001d236 (patch) | |
tree | 19d70876a0c1ff766ace438806081d6d95dede82 /gdb/testsuite | |
parent | dd23068d52471aaf2f7cf80a1b4d8d987fccbf56 (diff) | |
download | gdb-7474326cb9441644313cb749e491bec5e001d236.zip gdb-7474326cb9441644313cb749e491bec5e001d236.tar.gz gdb-7474326cb9441644313cb749e491bec5e001d236.tar.bz2 |
gdb.cp/call-c.exp C++ify
Make the testcase work when built with a C++ compiler.
gdb/testsuite/ChangeLog:
* gdb.cp/call-c-1.c (foo) [__cplusplus]: Add extern "C".
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/call-c-1.c | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ded85f2..4034c73 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2020-09-17 Pedro Alves <pedro@palves.net> + * gdb.cp/call-c-1.c (foo) [__cplusplus]: Add extern "C". + +2020-09-17 Pedro Alves <pedro@palves.net> + * gdb.python/py-frame-inline.exp: Adjust to optionally expect a full prototype. diff --git a/gdb/testsuite/gdb.cp/call-c-1.c b/gdb/testsuite/gdb.cp/call-c-1.c index 5d3d019..fa79f03 100644 --- a/gdb/testsuite/gdb.cp/call-c-1.c +++ b/gdb/testsuite/gdb.cp/call-c-1.c @@ -15,4 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef __cplusplus +extern "C" +#endif int foo(int x) { return x; } |