This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ob] comment fixes to gdbtypes.[ch]


Hi.

I checked this in as obvious.

2010-01-14  Doug Evans  <dje@google.com>

	* gdbtypes.c (arch_flags_type): Fix comment.
	* gdbtypes.h (arch_composite_type): Fix comment.

Index: gdbtypes.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.c,v
retrieving revision 1.182
diff -u -p -r1.182 gdbtypes.c
--- gdbtypes.c	12 Jan 2010 05:48:56 -0000	1.182
+++ gdbtypes.c	14 Jan 2010 18:56:25 -0000
@@ -3157,7 +3157,7 @@ arch_complex_type (struct gdbarch *gdbar
 }
 
 /* Allocate a TYPE_CODE_FLAGS type structure associated with GDBARCH.
-   NAME is the type name.  LENGTH is the number of flag bits.  */
+   NAME is the type name.  LENGTH is the size of the flag word in bytes.  */
 struct type *
 arch_flags_type (struct gdbarch *gdbarch, char *name, int length)
 {
Index: gdbtypes.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbtypes.h,v
retrieving revision 1.118
diff -u -p -r1.118 gdbtypes.h
--- gdbtypes.h	12 Jan 2010 05:48:56 -0000	1.118
+++ gdbtypes.h	14 Jan 2010 18:56:25 -0000
@@ -1263,7 +1263,7 @@ extern struct type *arch_complex_type (s
 
 /* Helper functions to construct a struct or record type.  An
    initially empty type is created using arch_composite_type().
-   Fields are then added using append_struct_type_field().  A union
+   Fields are then added using append_composite_type_field*().  A union
    type has its size set to the largest field.  A struct type has each
    field packed against the previous.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]