diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-12-04 16:43:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2020-12-04 16:43:53 -0500 |
commit | 1152d984bb1b66a9ff7d11f46583b6e0188b885b (patch) | |
tree | bbbec5cbcb2adcd996f94d248ccd63f688df2d02 /gdb/infrun.h | |
parent | 28d5518b12119eaf087c64fe25e31d2f49e53485 (diff) |
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
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r-- | gdb/infrun.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h index ca0774e8e6..a276ddf025 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -239,8 +239,8 @@ extern void clear_exit_convenience_vars (void); /* Dump LEN bytes at BUF in hex to a string and return it. */ extern std::string displaced_step_dump_bytes (const gdb_byte *buf, size_t len); -extern struct displaced_step_closure *get_displaced_step_closure_by_addr - (CORE_ADDR addr); +extern struct displaced_step_copy_insn_closure * + get_displaced_step_copy_insn_closure_by_addr (CORE_ADDR addr); extern void update_observer_mode (void); @@ -282,18 +282,19 @@ extern void all_uis_on_sync_execution_starting (void); /* Base class for displaced stepping closures (the arch-specific data). */ -struct displaced_step_closure +struct displaced_step_copy_insn_closure { - virtual ~displaced_step_closure () = 0; + virtual ~displaced_step_copy_insn_closure () = 0; }; -using displaced_step_closure_up = std::unique_ptr<displaced_step_closure>; +using displaced_step_copy_insn_closure_up + = std::unique_ptr<displaced_step_copy_insn_closure>; /* A simple displaced step closure that contains only a byte buffer. */ -struct buf_displaced_step_closure : displaced_step_closure +struct buf_displaced_step_copy_insn_closure : displaced_step_copy_insn_closure { - buf_displaced_step_closure (int buf_size) + buf_displaced_step_copy_insn_closure (int buf_size) : buf (buf_size) {} @@ -334,7 +335,7 @@ struct displaced_step_inferior_state /* The closure provided gdbarch_displaced_step_copy_insn, to be used for post-step cleanup. */ - displaced_step_closure_up step_closure; + displaced_step_copy_insn_closure_up step_closure; /* The address of the original instruction, and the copy we made. */ |