aboutsummaryrefslogtreecommitdiff
path: root/gdb/p-lang.c
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2014-12-12 14:14:20 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2014-12-12 14:15:06 +0100
commit28eef6727d3cd4461091a752c19c418d1bf3bcb7 (patch)
treee7948652075691892f4f768dfcef4610f92916f5 /gdb/p-lang.c
parent6cabe1ea460c54c17ac877b2541eccf91d6b4b9c (diff)
downloadbinutils-28eef6727d3cd4461091a752c19c418d1bf3bcb7.zip
binutils-28eef6727d3cd4461091a752c19c418d1bf3bcb7.tar.gz
binutils-28eef6727d3cd4461091a752c19c418d1bf3bcb7.tar.bz2
gdbserver: Rephrase loops in regsets_fetch/store_inferior_registers
Replace the while-loops in linux-low.c that iterate over regsets by for-loops. This makes it clearer what is iterated over. Also, since "continue" now moves on to the next iteration without having to increment the regset pointer first, the code is slightly reduced. In case of EIO the old code did not increment the regset pointer, but iterated over the same (now disabled) regset again. This extra iteration is now avoided. gdb/gdbserver/ChangeLog: * linux-low.c (regsets_fetch_inferior_registers): Rephrase while-loop as for-loop. (regsets_store_inferior_registers): Likewise.
Diffstat (limited to 'gdb/p-lang.c')
0 files changed, 0 insertions, 0 deletions