Make exceptions use std::string and be self-managing
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-aarch64-tdesc-selftest.c
CommitLineData
42a4f53d 1/* Copyright (C) 2017-2019 Free Software Foundation, Inc.
6654d750
AH
2
3 This file is part of GDB.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
17
18#include "server.h"
19#include "tdesc.h"
20#include "common/selftest.h"
21#include "linux-aarch64-tdesc.h"
22
23/* Defined in auto-generated file features/aarch64.c. */
24void init_registers_aarch64 (void);
25extern const struct target_desc *tdesc_aarch64;
26
27namespace selftests {
28namespace tdesc {
29static void
30aarch64_tdesc_test ()
31{
6dc0ebde 32 const target_desc *tdesc = aarch64_linux_read_description (0, false);
6654d750
AH
33 SELF_CHECK (*tdesc == *tdesc_aarch64);
34}
35}
36} // namespace selftests
37
38void
39initialize_low_tdesc ()
40{
41 init_registers_aarch64 ();
42
43 selftests::register_test ("aarch64-tdesc",
44 selftests::tdesc::aarch64_tdesc_test);
45}
This page took 0.142605 seconds and 4 git commands to generate.