diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-28 13:36:32 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-28 13:36:32 +0000 |
commit | 1c79eb8a7d7126b5fcb734fb374be42a717d4373 (patch) | |
tree | b755b132d513e73c122099d1f4ec958ad44f701c /gdb/gdbserver/i387-fp.c | |
parent | 85724a0e6091239d4c901a03659d5b7e8946c5c6 (diff) | |
download | gdb-1c79eb8a7d7126b5fcb734fb374be42a717d4373.zip gdb-1c79eb8a7d7126b5fcb734fb374be42a717d4373.tar.gz gdb-1c79eb8a7d7126b5fcb734fb374be42a717d4373.tar.bz2 |
gdb/gdbserver/
* regcache.c (init_register_cache): Initialize
regcache->register_status.
(free_register_cache): Release regcache->register_status.
(regcache_cpy): Copy register_status.
(registers_to_string): Print 'x's for unavailable registers.
(supply_register): Mark the register's status valid or
unavailable, depending on whether a buffer was passed in or not.
(supply_register_zeroed): New.
(supply_regblock): Mark the registers' status valid or
unavailable, depending on whether a buffer was passed in or not.
* regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
(struct regcache): New `register_status' field.
(supply_register_zeroed): Declare.
* i387-fp.c (i387_xsave_to_cache): Zero out registers using
supply_register_zeroed, rather than passing a NULL buffer to
supply_register.
* tracepoint.c (fetch_traceframe_registers): Update comment.
Diffstat (limited to 'gdb/gdbserver/i387-fp.c')
-rw-r--r-- | gdb/gdbserver/i387-fp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbserver/i387-fp.c b/gdb/gdbserver/i387-fp.c index 3dfe06b..80b5de6 100644 --- a/gdb/gdbserver/i387-fp.c +++ b/gdb/gdbserver/i387-fp.c @@ -482,7 +482,7 @@ i387_xsave_to_cache (struct regcache *regcache, const void *buf) if ((clear_bv & I386_XSTATE_X87) != 0) { for (i = 0; i < 8; i++) - supply_register (regcache, i + st0_regnum, NULL); + supply_register_zeroed (regcache, i + st0_regnum); } else { @@ -499,7 +499,7 @@ i387_xsave_to_cache (struct regcache *regcache, const void *buf) if ((clear_bv & I386_XSTATE_SSE)) { for (i = 0; i < num_xmm_registers; i++) - supply_register (regcache, i + xmm0_regnum, NULL); + supply_register_zeroed (regcache, i + xmm0_regnum); } else { @@ -516,7 +516,7 @@ i387_xsave_to_cache (struct regcache *regcache, const void *buf) if ((clear_bv & I386_XSTATE_AVX) != 0) { for (i = 0; i < num_xmm_registers; i++) - supply_register (regcache, i + ymm0h_regnum, NULL); + supply_register_zeroed (regcache, i + ymm0h_regnum); } else { |