linux-tdep.c: Remove unused `num_notes' struct member
authorMaciej W. Rozycki <macro@codesourcery.com>
Thu, 24 Oct 2013 19:26:37 +0000 (20:26 +0100)
committerTom Tromey <tromey@sourceware.org>
Fri, 25 Oct 2013 14:02:59 +0000 (14:02 +0000)
* linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
member.
(linux_corefile_thread_callback): Update accordingly.
(linux_make_corefile_notes): Likewise.

gdb/ChangeLog
gdb/linux-tdep.c

index 5d17998aa31b8f557dd0ad454a2e7c76570eb5d6..3344e01ca204926a1f902dce0b2b6e33d3f55452 100644 (file)
@@ -1,3 +1,10 @@
+2013-10-24  "Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
+       member.
+       (linux_corefile_thread_callback): Update accordingly.
+       (linux_make_corefile_notes): Likewise.
+
 2013-10-24  Pedro Alves   <palves@redhat.com>
 
        * NEWS (New options): Mention set/show startup-with-shell.
index eb8ea2b664de4cc9d7aa05f59695a3b3f602d975..5bca07666b7cf35b0e4b2c4624f496ed4e6f9f91 100644 (file)
@@ -1176,7 +1176,6 @@ struct linux_corefile_thread_data
   bfd *obfd;
   char *note_data;
   int *note_size;
-  int num_notes;
   enum gdb_signal stop_signal;
   linux_collect_thread_registers_ftype collect;
 };
@@ -1209,7 +1208,6 @@ linux_corefile_thread_callback (struct thread_info *info, void *data)
       args->note_data = args->collect (regcache, info->ptid, args->obfd,
                                       args->note_data, args->note_size,
                                       args->stop_signal);
-      args->num_notes++;
 
       if (siginfo_data != NULL)
        {
@@ -1218,7 +1216,6 @@ linux_corefile_thread_callback (struct thread_info *info, void *data)
                                                args->note_size,
                                                "CORE", NT_SIGINFO,
                                                siginfo_data, siginfo_size);
-         args->num_notes++;
        }
 
       do_cleanups (old_chain);
@@ -1467,7 +1464,6 @@ linux_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size,
   thread_args.obfd = obfd;
   thread_args.note_data = note_data;
   thread_args.note_size = note_size;
-  thread_args.num_notes = 0;
   thread_args.stop_signal = find_stop_signal ();
   thread_args.collect = collect;
   iterate_over_threads (linux_corefile_thread_callback, &thread_args);