aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@codesourcery.com>2013-10-24 20:26:37 +0100
committerTom Tromey <tromey@sourceware.org>2013-10-25 14:02:59 +0000
commit59a70096fd6b08cfcf4c737eeb358ae717c964ef (patch)
treec15e19e882144edbaa088e504bfc1bf7a06c9b20 /gdb
parent98882a26513e25b2161b41dfd4bed97b59b2c01a (diff)
downloadgdb-59a70096fd6b08cfcf4c737eeb358ae717c964ef.zip
gdb-59a70096fd6b08cfcf4c737eeb358ae717c964ef.tar.gz
gdb-59a70096fd6b08cfcf4c737eeb358ae717c964ef.tar.bz2
linux-tdep.c: Remove unused `num_notes' struct member
* linux-tdep.c (linux_corefile_thread_data): Remove `num_notes' member. (linux_corefile_thread_callback): Update accordingly. (linux_make_corefile_notes): Likewise.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/linux-tdep.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5d17998..3344e01 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c
index eb8ea2b..5bca076 100644
--- a/gdb/linux-tdep.c
+++ b/gdb/linux-tdep.c
@@ -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);