aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2018-06-20 09:31:37 +0100
committerAlan Hayward <alan.hayward@arm.com>2018-06-21 16:27:15 +0100
commit33bab475a6984afedac8a036b3bb40b5555b4127 (patch)
tree90001a8f3d2240a6bb406e5d9916e4475c70d35a /gdb/elfread.c
parentd388f64333fb977c1b975cb9d26c762b143f4cb9 (diff)
downloadgdb-33bab475a6984afedac8a036b3bb40b5555b4127.zip
gdb-33bab475a6984afedac8a036b3bb40b5555b4127.tar.gz
gdb-33bab475a6984afedac8a036b3bb40b5555b4127.tar.bz2
Avoid memcpys in regcache read_part/write_part for full registers.
Additionally, tidy up the functions: Remove asserts, use gdb_byte, update comments. gdb/ * regcache.c (readable_regcache::read_part): Avoid memcpy when possible. (regcache::write_part): Likewise. (readable_regcache::cooked_read_part): Update comment. (readable_regcache::cooked_write_part): Likewise. * regcache.h: (readable_regcache::read_part): Likewise. (regcache::write_part): Likewise.
Diffstat (limited to 'gdb/elfread.c')
0 files changed, 0 insertions, 0 deletions