From 974a734be3dfcbc121c40b227fcd12cf03874ecc Mon Sep 17 00:00:00 2001 From: Aleksandar Ristovski Date: Thu, 31 Jan 2013 19:18:59 +0000 Subject: [PATCH] 2013-01-31 Aleksandar Ristovski * infrun.c (handle_syscall_event): Remove unused gdbarch. (save_infcall_suspend_state): Ifdef out unused inf. (restore_infcall_suspend_state): Ifdef out unused inf. * jit.c (jit_register_code): Remove unused i, b, inf_data. (jit_frame_sniffer): Remove unused inf_data. Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00773.html --- gdb/ChangeLog | 8 ++++++++ gdb/infrun.c | 6 ++++-- gdb/jit.c | 7 +------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e9f269e..5482a52 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,13 @@ 2013-01-31 Aleksandar Ristovski + * infrun.c (handle_syscall_event): Remove unused gdbarch. + (save_infcall_suspend_state): Ifdef out unused inf. + (restore_infcall_suspend_state): Ifdef out unused inf. + * jit.c (jit_register_code): Remove unused i, b, inf_data. + (jit_frame_sniffer): Remove unused inf_data. + +2013-01-31 Aleksandar Ristovski + * c-exp.y (classify_inner_name): Remove unused type. * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed, in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished, diff --git a/gdb/infrun.c b/gdb/infrun.c index f4ff5bb..1cf30fe 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3073,14 +3073,12 @@ static int handle_syscall_event (struct execution_control_state *ecs) { struct regcache *regcache; - struct gdbarch *gdbarch; int syscall_number; if (!ptid_equal (ecs->ptid, inferior_ptid)) context_switch (ecs->ptid); regcache = get_thread_regcache (ecs->ptid); - gdbarch = get_regcache_arch (regcache); syscall_number = ecs->ws.value.syscall_number; stop_pc = regcache_read_pc (regcache); @@ -6745,7 +6743,9 @@ save_infcall_suspend_state (void) { struct infcall_suspend_state *inf_state; struct thread_info *tp = inferior_thread (); +#if 0 struct inferior *inf = current_inferior (); +#endif struct regcache *regcache = get_current_regcache (); struct gdbarch *gdbarch = get_regcache_arch (regcache); gdb_byte *siginfo_data = NULL; @@ -6800,7 +6800,9 @@ void restore_infcall_suspend_state (struct infcall_suspend_state *inf_state) { struct thread_info *tp = inferior_thread (); +#if 0 struct inferior *inf = current_inferior (); +#endif struct regcache *regcache = get_current_regcache (); struct gdbarch *gdbarch = get_regcache_arch (regcache); diff --git a/gdb/jit.c b/gdb/jit.c index b4294e8..62fe97b 100644 --- a/gdb/jit.c +++ b/gdb/jit.c @@ -926,9 +926,7 @@ static void jit_register_code (struct gdbarch *gdbarch, CORE_ADDR entry_addr, struct jit_code_entry *code_entry) { - int i, success; - const struct bfd_arch_info *b; - struct jit_inferior_data *inf_data = get_jit_inferior_data (); + int success; if (jit_debug) fprintf_unfiltered (gdb_stdlog, @@ -1115,13 +1113,10 @@ static int jit_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **cache) { - struct jit_inferior_data *inf_data; struct jit_unwind_private *priv_data; struct gdb_unwind_callbacks callbacks; struct gdb_reader_funcs *funcs; - inf_data = get_jit_inferior_data (); - callbacks.reg_get = jit_unwind_reg_get_impl; callbacks.reg_set = jit_unwind_reg_set_impl; callbacks.target_read = jit_target_read_impl; -- 2.7.4