forked from Imagelibrary/binutils-gdb
gdb: rename displaced_step_closure to displaced_step_copy_insn_closure
Since we're going to introduce other "displaced step" functions and another kind of displaced step closure, make it clear that this is the return type of the gdbarch_displaced_step_copy_insn function. gdb/ChangeLog: * infrun.h (get_displaced_step_closure_by_addr): Rename to... (get_displaced_step_copy_insn_closure_by_addr): ... this. Update all users. (displaced_step_closure): Rename to... (displaced_step_copy_insn_closure): ... this. Update all users. (displaced_step_closure_up): Rename to... (displaced_step_copy_insn_closure_up). ... this. Update all users. (buf_displaced_step_closure): Rename to... (buf_displaced_step_copy_insn_closure): ... this. Update all users. * infrun.c (get_displaced_step_closure_by_addr): Rename to... (get_displaced_step_copy_insn_closure_by_addr): ... this. Update all users. * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to... (aarch64_displaced_step_copy_insn_closure): ... this. Update all users. * amd64-tdep.c (amd64_displaced_step_closure): Rename to... (amd64_displaced_step_copy_insn_closure): ... this. Update all users. * arm-tdep.h (arm_displaced_step_closure): Rename to... (arm_displaced_step_copy_insn_closure): ... this. Update all users. * i386-tdep.h (i386_displaced_step_closure): Rename to... (i386_displaced_step_copy_insn_closure): ... this. Update all users. * rs6000-tdep.c (ppc_displaced_step_closure): Rename to... (ppc_displaced_step_copy_insn_closure): ... this. Update all users. * s390-tdep.c (s390_displaced_step_closure): Rename to... (s390_displaced_step_copy_insn_closure): ... this. Update all users. * gdbarch.h: Re-generate. * gdbarch.c: Re-generate. Change-Id: I11f56dbcd4c3532fb195a08ba93bccf1d12a03c8
This commit is contained in:
@@ -149,7 +149,8 @@ struct gdbarch_tdep
|
||||
sequence) and any scratch words, etc. */
|
||||
#define ARM_DISPLACED_MODIFIED_INSNS 8
|
||||
|
||||
struct arm_displaced_step_closure : public displaced_step_closure
|
||||
struct arm_displaced_step_copy_insn_closure
|
||||
: public displaced_step_copy_insn_closure
|
||||
{
|
||||
ULONGEST tmp[DISPLACED_TEMPS];
|
||||
int rd;
|
||||
@@ -196,7 +197,7 @@ struct arm_displaced_step_closure : public displaced_step_closure
|
||||
/* If non-NULL, override generic SVC handling (e.g. for a particular
|
||||
OS). */
|
||||
int (*copy_svc_os) (struct gdbarch *gdbarch, struct regcache *regs,
|
||||
arm_displaced_step_closure *dsc);
|
||||
arm_displaced_step_copy_insn_closure *dsc);
|
||||
} svc;
|
||||
} u;
|
||||
|
||||
@@ -215,7 +216,7 @@ struct arm_displaced_step_closure : public displaced_step_closure
|
||||
CORE_ADDR insn_addr;
|
||||
CORE_ADDR scratch_base;
|
||||
void (*cleanup) (struct gdbarch *, struct regcache *,
|
||||
arm_displaced_step_closure *);
|
||||
arm_displaced_step_copy_insn_closure *);
|
||||
};
|
||||
|
||||
/* Values for the WRITE_PC argument to displaced_write_reg. If the register
|
||||
@@ -234,16 +235,17 @@ enum pc_write_style
|
||||
extern void
|
||||
arm_process_displaced_insn (struct gdbarch *gdbarch, CORE_ADDR from,
|
||||
CORE_ADDR to, struct regcache *regs,
|
||||
arm_displaced_step_closure *dsc);
|
||||
arm_displaced_step_copy_insn_closure *dsc);
|
||||
extern void
|
||||
arm_displaced_init_closure (struct gdbarch *gdbarch, CORE_ADDR from,
|
||||
CORE_ADDR to, arm_displaced_step_closure *dsc);
|
||||
CORE_ADDR to,
|
||||
arm_displaced_step_copy_insn_closure *dsc);
|
||||
extern ULONGEST
|
||||
displaced_read_reg (struct regcache *regs, arm_displaced_step_closure *dsc,
|
||||
displaced_read_reg (regcache *regs, arm_displaced_step_copy_insn_closure *dsc,
|
||||
int regno);
|
||||
extern void
|
||||
displaced_write_reg (struct regcache *regs,
|
||||
arm_displaced_step_closure *dsc, int regno,
|
||||
arm_displaced_step_copy_insn_closure *dsc, int regno,
|
||||
ULONGEST val, enum pc_write_style write_pc);
|
||||
|
||||
CORE_ADDR arm_skip_stub (struct frame_info *, CORE_ADDR);
|
||||
@@ -262,7 +264,7 @@ int arm_is_thumb (struct regcache *regcache);
|
||||
int arm_frame_is_thumb (struct frame_info *frame);
|
||||
|
||||
extern void arm_displaced_step_fixup (struct gdbarch *,
|
||||
struct displaced_step_closure *,
|
||||
displaced_step_copy_insn_closure *,
|
||||
CORE_ADDR, CORE_ADDR, struct regcache *);
|
||||
|
||||
/* Return the bit mask in ARM_PS_REGNUM that indicates Thumb mode. */
|
||||
|
||||
Reference in New Issue
Block a user