diff options
author | Alan Hayward <alan.hayward@arm.com> | 2017-03-23 14:40:58 +0000 |
---|---|---|
committer | Alan Hayward <alan.hayward@arm.com> | 2017-03-23 14:40:58 +0000 |
commit | 077ae656a69fcf144f68848a3f6f2cb559b62987 (patch) | |
tree | 81214d0d71c92185b0ad29d5989d17d48381ecdd /gdb/sol-thread.c | |
parent | 1e2b521d987a34898ca959a33972be8912511ba0 (diff) | |
download | binutils-gdb-077ae656a69fcf144f68848a3f6f2cb559b62987.tar.gz |
Remove MAX_REGISTER_SIZE from sol-thread.c
gdb/
* sol-thread.c (sol_thread_store_registers): Remove regcache calls.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r-- | gdb/sol-thread.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index efb3bd0b218..e59c0cbbb34 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -536,12 +536,6 @@ sol_thread_store_registers (struct target_ops *ops, if (regnum != -1) { - /* Not writing all the registers. */ - char old_value[MAX_REGISTER_SIZE]; - - /* Save new register value. */ - regcache_raw_collect (regcache, regnum, old_value); - val = p_td_thr_getgregs (&thandle, gregset); if (val != TD_OK) error (_("sol_thread_store_registers: td_thr_getgregs %s"), @@ -550,9 +544,6 @@ sol_thread_store_registers (struct target_ops *ops, if (val != TD_OK) error (_("sol_thread_store_registers: td_thr_getfpregs %s"), td_err_string (val)); - - /* Restore new register value. */ - regcache_raw_supply (regcache, regnum, old_value); } fill_gregset (regcache, (gdb_gregset_t *) &gregset, regnum); |