aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/addrmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/addrmap.c b/gdb/addrmap.c
index 2281782..49e51a3 100644
--- a/gdb/addrmap.c
+++ b/gdb/addrmap.c
@@ -681,11 +681,13 @@ test_addrmap ()
}
} // namespace selftests
+#endif /* GDB_SELF_TEST */
void _initialize_addrmap ();
void
_initialize_addrmap ()
{
+#if GDB_SELF_TEST
selftests::register_test ("addrmap", selftests::test_addrmap);
-}
#endif /* GDB_SELF_TEST */
+}