[binutils-gdb] gdbserver: Fix stale comment in i387-fp.cc:i387_cache_to_xsave

Christina Schimpe cschimpe@sourceware.org
Tue Nov 3 21:43:12 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=105ad04a01712ac01c6c045fa725e53c1efadb36

commit 105ad04a01712ac01c6c045fa725e53c1efadb36
Author: Christina Joos <christina.joos@intel.com>
Date:   Mon Nov 2 14:04:55 2026 +0100

    gdbserver: Fix stale comment in i387-fp.cc:i387_cache_to_xsave
    
    The comment above the final update of fp->xstate_bv only mentions
    SSE/AVX registers.  The bits collected in the local xstate_bv cover
    every XSAVE component handled by the function (x87, SSE, AVX, AVX512,
    PKRU and APX), so reword the comment accordingly.
    
    No functional change.

Diff:
---
 gdbserver/i387-fp.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdbserver/i387-fp.cc b/gdbserver/i387-fp.cc
index 90f146a74d2..ada68211596 100644
--- a/gdbserver/i387-fp.cc
+++ b/gdbserver/i387-fp.cc
@@ -562,8 +562,8 @@ i387_cache_to_xsave (struct regcache *regcache, void *buf)
 	}
     }
 
-  /* Update the corresponding bits in xstate_bv if any SSE/AVX
-     registers are changed.  */
+  /* Update the corresponding bits in xstate_bv if any of the above
+     xsave registers are changed.  */
   fp->xstate_bv |= xstate_bv;
 }


More information about the Gdb-cvs mailing list