public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb: Reformat amd64_dwarf_reg_to_regnum
@ 2024-02-14 15:27 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-02-14 15:27 UTC (permalink / raw)
  To: gdb-cvs

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

commit 84dbcde450ae58f506c61b7698dcc191ead3544b
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Feb 14 05:29:31 2024 -0800

    gdb: Reformat amd64_dwarf_reg_to_regnum
    
    Reformat amd64_dwarf_reg_to_regnum:
    
    @@ -254,8 +254,7 @@ amd64_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
       if (reg >= 0 && reg < amd64_dwarf_regmap_len)
         regnum = amd64_dwarf_regmap[reg];
    
    -  if (ymm0_regnum >= 0
    -          && i386_xmm_regnum_p (gdbarch, regnum))
    +  if (ymm0_regnum >= 0 && i386_xmm_regnum_p (gdbarch, regnum))
         regnum += ymm0_regnum - I387_XMM0_REGNUM (tdep);
    
    to remove the misaligned line.

Diff:
---
 gdb/amd64-tdep.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c
index baca3099b69..a8ff9246b8a 100644
--- a/gdb/amd64-tdep.c
+++ b/gdb/amd64-tdep.c
@@ -254,8 +254,7 @@ amd64_dwarf_reg_to_regnum (struct gdbarch *gdbarch, int reg)
   if (reg >= 0 && reg < amd64_dwarf_regmap_len)
     regnum = amd64_dwarf_regmap[reg];
 
-  if (ymm0_regnum >= 0
-	   && i386_xmm_regnum_p (gdbarch, regnum))
+  if (ymm0_regnum >= 0 && i386_xmm_regnum_p (gdbarch, regnum))
     regnum += ymm0_regnum - I387_XMM0_REGNUM (tdep);
 
   return regnum;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-14 15:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 15:27 [binutils-gdb] gdb: Reformat amd64_dwarf_reg_to_regnum H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).