/* Self tests for memory-map for GDB, the GNU debugger.
- Copyright (C) 2017-2018 Free Software Foundation, Inc.
+ Copyright (C) 2017-2021 Free Software Foundation, Inc.
This file is part of GDB.
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
-#include "selftest.h"
+#include "gdbsupport/selftest.h"
#include "memory-map.h"
#if defined(HAVE_LIBEXPAT)
/* A simple valid test input for parse_memory_map. */
-static const char *valid_mem_map = R"(<?xml version="1.0"?>
+static const char valid_mem_map[] = R"(<?xml version="1.0"?>
<!DOCTYPE memory-map
- PUBLIC "+//IDN gnu.org//DTD GDB Memory Map V1.0//EN"
- "http://sourceware.org/gdb/gdb-memory-map.dtd">
+ PUBLIC "+//IDN gnu.org//DTD GDB Memory Map V1.0//EN"
+ "http://sourceware.org/gdb/gdb-memory-map.dtd">
<memory-map>
<memory type="ram" start="0" length="4096" />
<memory type="rom" start="65536" length="256" />
#endif /* HAVE_LIBEXPAT */
+void _initialize_memory_map_selftests ();
void
_initialize_memory_map_selftests ()
{