diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 19:18:59 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2013-01-31 19:18:59 +0000 |
commit | 974a734be3dfcbc121c40b227fcd12cf03874ecc (patch) | |
tree | 97a9d7acd89f88efd43dcb71e05cd470b40d6c3b /gdb/infrun.c | |
parent | df54f8eb0a1c7a5d7bfa6419bda97c36afa48750 (diff) | |
download | gdb-974a734be3dfcbc121c40b227fcd12cf03874ecc.zip gdb-974a734be3dfcbc121c40b227fcd12cf03874ecc.tar.gz gdb-974a734be3dfcbc121c40b227fcd12cf03874ecc.tar.bz2 |
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* 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
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 6 |
1 files changed, 4 insertions, 2 deletions
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); |