diff options
author | Pedro Alves <pedro@palves.net> | 2020-09-17 23:33:40 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2020-09-18 00:04:47 +0100 |
commit | 11fac33796f43a177c1836bf8fb1f7cc60e3875e (patch) | |
tree | da989c8ffb85e2f0cf2a3506747e25e54285252e /gdb/cp-abi.c | |
parent | 52626c58267233b0e6a9807a80945467a019013b (diff) | |
download | gdb-11fac33796f43a177c1836bf8fb1f7cc60e3875e.zip gdb-11fac33796f43a177c1836bf8fb1f7cc60e3875e.tar.gz gdb-11fac33796f43a177c1836bf8fb1f7cc60e3875e.tar.bz2 |
gdb.base/examine-backward.exp C++ify and Clang
Adjust gdb.base/examine-backward.exp to let the testcase build and run
as a C++ program, built with either G++ or Clang++.
The change to use unsigned char instead of plain char is to avoid
narrowing warnings:
gdb compile failed, src/gdb/testsuite/gdb.base/examine-backward.c:55:1: error: narrowing conversion of '227' from 'int' to 'char' [-Wnarrowing]
55 | };
| ^
gdb/testsuite/ChangeLog:
* gdb.base/examine-backward.c (Barrier, TestStrings): Now unsigned
char array.
(main): Add references to Barrier, TestStrings, TestStringsH and
TestStringsW.
* gdb.base/examine-backward.exp: Issue "set print asm-demangle on"
and expect a full prototype in C++.
Diffstat (limited to 'gdb/cp-abi.c')
0 files changed, 0 insertions, 0 deletions