diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-04 14:12:34 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-05-04 14:12:34 +0000 |
commit | 515630c5e5a3b481867b81031930664f8d1d9b77 (patch) | |
tree | 97c8d75819dfa7fc34fe4d37b33a9986051c1bf4 /gdb/regcache.h | |
parent | ebd3bcc1327e6a7de6daf6536134cb20be9c2cfd (diff) | |
download | binutils-gdb-515630c5e5a3b481867b81031930664f8d1d9b77.tar.gz |
* inferior.h (read_pc_pid, write_pc_pid): Remove.
* regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
* regcache.c (read_pc_pid): Remove, replace by ...
(regcache_read_pc): ... this function.
(write_pc_pid): Remove, replace by ...
(regcache_write_pc): ... this function.
(read_pc, write_pc): Update.
* infrun.c (displaced_step_prepare): Replace read_pc_pid and
write_pc_pid by regcache_read_pc and regcache_write_pc.
(displaced_step_fixup): Likewise.
(resume): Likewise. Use regcache arch instead of current_gdbarch.
(prepare_to_proceed): Likewise.
(proceed): Likewise.
(adjust_pc_after_break): Likewise.
(handle_inferior_event): Likewise.
* linux-nat.c (cancel_breakpoint): Likewise.
* linux-thread-db.c (check_event): Likewise.
* aix-thread.c (aix_thread_wait): Likewise.
* tracepoint.c (trace_dump_command): Likewise.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index 1e4ee86adc8..25f4e75ff7f 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -94,6 +94,11 @@ void regcache_cooked_read_part (struct regcache *regcache, int regnum, void regcache_cooked_write_part (struct regcache *regcache, int regnum, int offset, int len, const gdb_byte *buf); +/* Special routines to read/write the PC. */ + +extern CORE_ADDR regcache_read_pc (struct regcache *regcache); +extern void regcache_write_pc (struct regcache *regcache, CORE_ADDR pc); + /* Transfer a raw register [0..NUM_REGS) between the regcache and the target. These functions are called by the target in response to a target_fetch_registers() or target_store_registers(). */ |