diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:36 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:36 -0400 |
commit | 0b8835861cde41744a08f215b48fccd135815b63 (patch) | |
tree | 222cba12875bd2e2df78b6ccfe5ad2e71e726e3a /gdb/amd64-tdep.c | |
parent | 0b47d9858ca0805cd52ba959276d08899c7b9f8c (diff) | |
download | gdb-0b8835861cde41744a08f215b48fccd135815b63.zip gdb-0b8835861cde41744a08f215b48fccd135815b63.tar.gz gdb-0b8835861cde41744a08f215b48fccd135815b63.tar.bz2 |
Remove regcache_raw_read
Remove regcache_raw_read, update all callers to use
readable_regcache::raw_read instead.
gdb/ChangeLog:
* regcache.h (regcache_raw_read): Remove, update callers to use
readable_regcache::raw_read instead.
* regcache.c (regcache_raw_read): Remove.
Diffstat (limited to 'gdb/amd64-tdep.c')
-rw-r--r-- | gdb/amd64-tdep.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index d555465..0eac35e 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -422,8 +422,7 @@ amd64_pseudo_register_write (struct gdbarch *gdbarch, if (gpnum >= AMD64_NUM_LOWER_BYTE_REGS) { /* Read ... AH, BH, CH, DH. */ - regcache_raw_read (regcache, - gpnum - AMD64_NUM_LOWER_BYTE_REGS, raw_buf); + regcache->raw_read (gpnum - AMD64_NUM_LOWER_BYTE_REGS, raw_buf); /* ... Modify ... (always little endian). */ memcpy (raw_buf + 1, buf, 1); /* ... Write. */ @@ -433,7 +432,7 @@ amd64_pseudo_register_write (struct gdbarch *gdbarch, else { /* Read ... */ - regcache_raw_read (regcache, gpnum, raw_buf); + regcache->raw_read (gpnum, raw_buf); /* ... Modify ... (always little endian). */ memcpy (raw_buf, buf, 1); /* ... Write. */ @@ -445,7 +444,7 @@ amd64_pseudo_register_write (struct gdbarch *gdbarch, int gpnum = regnum - tdep->eax_regnum; /* Read ... */ - regcache_raw_read (regcache, gpnum, raw_buf); + regcache->raw_read (gpnum, raw_buf); /* ... Modify ... (always little endian). */ memcpy (raw_buf, buf, 4); /* ... Write. */ @@ -771,8 +770,8 @@ amd64_return_value (struct gdbarch *gdbarch, struct value *function, { if (readbuf) { - regcache_raw_read (regcache, AMD64_ST0_REGNUM, readbuf); - regcache_raw_read (regcache, AMD64_ST1_REGNUM, readbuf + 16); + regcache->raw_read (AMD64_ST0_REGNUM, readbuf); + regcache->raw_read (AMD64_ST1_REGNUM, readbuf + 16); } if (writebuf) |