public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: H.J. Lu <hjl@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] gdb: Reformat amd64_dwarf_reg_to_regnum
Date: Wed, 14 Feb 2024 15:27:12 +0000 (GMT)	[thread overview]
Message-ID: <20240214152712.27734385E004@sourceware.org> (raw)

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;

                 reply	other threads:[~2024-02-14 15:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240214152712.27734385E004@sourceware.org \
    --to=hjl@sourceware.org \
    --cc=gdb-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).