diff options
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 2634c1e..252072b 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -1,6 +1,6 @@ /* Support for printing C++ values for GDB, the GNU debugger. - Copyright (C) 1986-2024 Free Software Foundation, Inc. + Copyright (C) 1986-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -100,7 +100,7 @@ cp_is_vtbl_member (struct type *type) /* The type name of the thunk pointer is NULL when using dwarf2. We could test for a pointer to a function, but there is no type info for the virtual table either, so it - wont help. */ + won't help. */ return cp_is_vtbl_ptr_type (type); } } @@ -797,9 +797,7 @@ test_print_fields (gdbarch *arch) #endif -void _initialize_cp_valprint (); -void -_initialize_cp_valprint () +INIT_GDB_FILE (cp_valprint) { #if GDB_SELF_TEST selftests::register_test_foreach_arch ("print-fields", test_print_fields); |