]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/arm-linux-nat.c
lwp_info: Make the arch code free arch_lwp_info
[thirdparty/binutils-gdb.git] / gdb / arm-linux-nat.c
index fc66063ce50dc9ab98cd3704d3efe2665d0d6238..8b25ff7f9482c9eef6b84c492b0c16dc0ff46618 100644 (file)
@@ -1202,6 +1202,14 @@ arm_linux_new_thread (struct lwp_info *lp)
   lp->arch_private = info;
 }
 
+/* Function to call when a thread is being deleted.  */
+
+static void
+arm_linux_delete_thread (struct arch_lwp_info *arch_lwp)
+{
+  xfree (arch_lwp);
+}
+
 /* Called when resuming a thread.
    The hardware debug registers are updated when there is any change.  */
 
@@ -1313,6 +1321,7 @@ _initialize_arm_linux_nat (void)
 
   /* Handle thread creation and exit.  */
   linux_nat_set_new_thread (t, arm_linux_new_thread);
+  linux_nat_set_delete_thread (t, arm_linux_delete_thread);
   linux_nat_set_prepare_to_resume (t, arm_linux_prepare_to_resume);
 
   /* Handle process creation and exit.  */