diff options
Diffstat (limited to 'gdb/disasm-selftests.c')
-rw-r--r-- | gdb/disasm-selftests.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c index 9eb80b4..ecfb974 100644 --- a/gdb/disasm-selftests.c +++ b/gdb/disasm-selftests.c @@ -207,14 +207,13 @@ memory_error_test (struct gdbarch *gdbarch) } // namespace selftests #endif /* GDB_SELF_TEST */ -/* Suppress warning from -Wmissing-prototypes. */ -extern initialize_file_ftype _initialize_disasm_selftests; - void _initialize_disasm_selftests (void) { #if GDB_SELF_TEST - register_self_test_foreach_arch (selftests::print_one_insn_test); - register_self_test_foreach_arch (selftests::memory_error_test); + selftests::register_test_foreach_arch ("print_one_insn", + selftests::print_one_insn_test); + selftests::register_test_foreach_arch ("memory_error", + selftests::memory_error_test); #endif } |