* [PATCH] gdb: Reformat amd64_dwarf_reg_to_regnum
@ 2024-02-14 13:29 H.J. Lu
2024-02-14 15:09 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2024-02-14 13:29 UTC (permalink / raw)
To: gdb-patches
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.
---
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;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gdb: Reformat amd64_dwarf_reg_to_regnum
2024-02-14 13:29 [PATCH] gdb: Reformat amd64_dwarf_reg_to_regnum H.J. Lu
@ 2024-02-14 15:09 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2024-02-14 15:09 UTC (permalink / raw)
To: H.J. Lu; +Cc: gdb-patches
>>>>> H J Lu <hjl.tools@gmail.com> writes:
> Reformat amd64_dwarf_reg_to_regnum:
[...]
> to remove the misaligned line.
Thank you, this is ok.
Approved-By: Tom Tromey <tom@tromey.com>
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-02-14 15:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14 13:29 [PATCH] gdb: Reformat amd64_dwarf_reg_to_regnum H.J. Lu
2024-02-14 15:09 ` Tom Tromey
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).