public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h.
@ 2023-01-24 14:16 Felix Willgerodt
  2023-01-24 18:43 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Willgerodt @ 2023-01-24 14:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: Felix Willgerodt

The comment seems no longer valid, the functions technically check for
non-pseudo registers, like zmmh.  Which is a valid use case.

This could also be considered obvious, but the 32-bit register code is
a bit complex to understand.
---
 gdb/i386-tdep.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index 82de5faa988..371bce72369 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -353,7 +353,7 @@ enum record_i386_regnum
 /* Types for i386-specific registers.  */
 extern struct type *i387_ext_type (struct gdbarch *gdbarch);
 
-/* Checks of different pseudo-registers.  */
+/* Checks of different registers.  */
 extern int i386_byte_regnum_p (struct gdbarch *gdbarch, int regnum);
 extern int i386_word_regnum_p (struct gdbarch *gdbarch, int regnum);
 extern int i386_dword_regnum_p (struct gdbarch *gdbarch, int regnum);
-- 
2.34.3

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h.
  2023-01-24 14:16 [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h Felix Willgerodt
@ 2023-01-24 18:43 ` Tom Tromey
  2023-01-25 12:43   ` Willgerodt, Felix
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2023-01-24 18:43 UTC (permalink / raw)
  To: Felix Willgerodt via Gdb-patches; +Cc: Felix Willgerodt

>>>>> "Felix" == Felix Willgerodt via Gdb-patches <gdb-patches@sourceware.org> writes:

Felix> The comment seems no longer valid, the functions technically check for
Felix> non-pseudo registers, like zmmh.  Which is a valid use case.

Felix> This could also be considered obvious, but the 32-bit register code is
Felix> a bit complex to understand.

It seems fine to me.  Thank you.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h.
  2023-01-24 18:43 ` Tom Tromey
@ 2023-01-25 12:43   ` Willgerodt, Felix
  0 siblings, 0 replies; 3+ messages in thread
From: Willgerodt, Felix @ 2023-01-25 12:43 UTC (permalink / raw)
  To: Tom Tromey, Felix Willgerodt via Gdb-patches

Pushed.

Thanks,
Felix

> -----Original Message-----
> From: Tom Tromey <tom@tromey.com>
> Sent: Dienstag, 24. Januar 2023 19:44
> To: Felix Willgerodt via Gdb-patches <gdb-patches@sourceware.org>
> Cc: Willgerodt, Felix <felix.willgerodt@intel.com>
> Subject: Re: [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h.
> 
> >>>>> "Felix" == Felix Willgerodt via Gdb-patches <gdb-
> patches@sourceware.org> writes:
> 
> Felix> The comment seems no longer valid, the functions technically check
> for
> Felix> non-pseudo registers, like zmmh.  Which is a valid use case.
> 
> Felix> This could also be considered obvious, but the 32-bit register code is
> Felix> a bit complex to understand.
> 
> It seems fine to me.  Thank you.
> 
> Tom
Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-01-25 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 14:16 [PATCH 1/1] gdb, i386: Update stale comment in i386-tdep.h Felix Willgerodt
2023-01-24 18:43 ` Tom Tromey
2023-01-25 12:43   ` Willgerodt, Felix

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).