aboutsummaryrefslogtreecommitdiff
path: root/gdb/riscv-fbsd-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-10-08 16:39:29 -0600
committerTom Tromey <tom@tromey.com>2018-10-08 16:39:29 -0600
commita0c3048e3f397a595a14208e82e21399131f782b (patch)
treeccab398faeaef5cc3fab3c9be8e2c32589b31edd /gdb/riscv-fbsd-tdep.c
parenta51bb70c8a1570f2e6fa74432578bcdf7f2785aa (diff)
downloadgdb-a0c3048e3f397a595a14208e82e21399131f782b.zip
gdb-a0c3048e3f397a595a14208e82e21399131f782b.tar.gz
gdb-a0c3048e3f397a595a14208e82e21399131f782b.tar.bz2
Remove unused variables from riscv-fbsd-tdep.c
This removes a couple of unused variables from riscv-fbsd-tdep.c. This allows a --enable-targets=all build to complete on x86-64 Fedora 28. gdb/ChangeLog 2018-10-08 Tom Tromey <tom@tromey.com> * riscv-fbsd-tdep.c (riscv_fbsd_sigframe_init): Remove unused variable. (riscv_fbsd_init_abi): Likewise.
Diffstat (limited to 'gdb/riscv-fbsd-tdep.c')
-rw-r--r--gdb/riscv-fbsd-tdep.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/riscv-fbsd-tdep.c b/gdb/riscv-fbsd-tdep.c
index 4971546..6914efb 100644
--- a/gdb/riscv-fbsd-tdep.c
+++ b/gdb/riscv-fbsd-tdep.c
@@ -134,7 +134,6 @@ riscv_fbsd_sigframe_init (const struct tramp_frame *self,
+ RISCV_SIGFRAME_UCONTEXT_OFFSET
+ RISCV_UCONTEXT_MCONTEXT_OFFSET);
gdb_byte buf[4];
- int i;
trad_frame_set_reg_regmap (this_cache, riscv_fbsd_gregmap, mcontext_addr,
RISCV_FBSD_NUM_GREGS * riscv_isa_xlen (gdbarch));
@@ -180,8 +179,6 @@ static const struct tramp_frame riscv_fbsd_sigframe =
static void
riscv_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
- struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
-
/* Generic FreeBSD support. */
fbsd_init_abi (info, gdbarch);