aboutsummaryrefslogtreecommitdiff
path: root/gdb/bpf-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/bpf-tdep.c')
-rw-r--r--gdb/bpf-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bpf-tdep.c b/gdb/bpf-tdep.c
index e520d5d..b2cd913 100644
--- a/gdb/bpf-tdep.c
+++ b/gdb/bpf-tdep.c
@@ -57,7 +57,7 @@ enum bpf_regnum
#define BPF_NUM_REGS (BPF_PC_REGNUM + 1)
/* Target-dependent structure in gdbarch. */
-struct gdbarch_tdep
+struct bpf_gdbarch_tdep : gdbarch_tdep
{
};
@@ -321,7 +321,7 @@ bpf_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
return arches->gdbarch;
/* Allocate space for the new architecture. */
- struct gdbarch_tdep *tdep = XCNEW (struct gdbarch_tdep);
+ bpf_gdbarch_tdep *tdep = new bpf_gdbarch_tdep;
struct gdbarch *gdbarch = gdbarch_alloc (&info, tdep);
/* Information about registers, etc. */