aboutsummaryrefslogtreecommitdiff
path: root/gdb/aarch64-fbsd-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/aarch64-fbsd-nat.c')
-rw-r--r--gdb/aarch64-fbsd-nat.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/aarch64-fbsd-nat.c b/gdb/aarch64-fbsd-nat.c
index 1746ad1..037043b 100644
--- a/gdb/aarch64-fbsd-nat.c
+++ b/gdb/aarch64-fbsd-nat.c
@@ -293,10 +293,10 @@ void
aarch64_notify_debug_reg_change (ptid_t ptid,
int is_watchpoint, unsigned int idx)
{
- for (thread_info *tp : current_inferior ()->non_exited_threads ())
+ for (thread_info &tp : current_inferior ()->non_exited_threads ())
{
- if (tp->ptid.lwp_p ())
- aarch64_debug_pending_threads.emplace (tp->ptid.lwp ());
+ if (tp.ptid.lwp_p ())
+ aarch64_debug_pending_threads.emplace (tp.ptid.lwp ());
}
}
@@ -348,9 +348,7 @@ aarch64_notify_debug_reg_change (ptid_t ptid,
}
#endif
-void _initialize_aarch64_fbsd_nat ();
-void
-_initialize_aarch64_fbsd_nat ()
+INIT_GDB_FILE (aarch64_fbsd_nat)
{
#ifdef HAVE_DBREG
aarch64_initialize_hw_point ();