gdb.base/examine-backward.exp C++ify and Clang
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:47 +0000 (00:04 +0100)
commit11fac33796f43a177c1836bf8fb1f7cc60e3875e
treeda989c8ffb85e2f0cf2a3506747e25e54285252e
parent52626c58267233b0e6a9807a80945467a019013b
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++.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/examine-backward.c
gdb/testsuite/gdb.base/examine-backward.exp
This page took 0.026653 seconds and 4 git commands to generate.