[binutils-gdb] Two comment fixes in gdbtypes.h

Tom Tromey tromey@sourceware.org
Thu May 30 14:54:00 GMT 2019


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

commit bfcdb85206cd3c3b8ad73b13db6bfb2ec608239b
Author: Tom Tromey <tromey@adacore.com>
Date:   Thu May 30 08:50:22 2019 -0600

    Two comment fixes in gdbtypes.h
    
    This fixes a couple of comments in gdbtypes.h.  One comment had a
    typo; and another comment referred to "Moto", which is presumably some
    long-gone Motorola-related project.
    
    Tested by rebuilding.
    
    gdb/ChangeLog
    2019-05-30  Tom Tromey  <tromey@adacore.com>
    
    	* gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
    	Fix comment.
    	(TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.

Diff:
---
 gdb/ChangeLog  | 6 ++++++
 gdb/gdbtypes.h | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a32c606..eec246d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2019-05-30  Tom Tromey  <tromey@adacore.com>
+
+	* gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
+	Fix comment.
+	(TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
+
 2019-05-30  Jan Vrany  <jan.vrany@fit.cvut.cz>
 
 	PR cli/24587
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 2f3834e..49653ff 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -619,7 +619,7 @@ struct range_bounds
   struct dynamic_prop high;
 
   /* True if HIGH range bound contains the number of elements in the
-     subrange. This affects how the final hight bound is computed.  */
+     subrange.  This affects how the final high bound is computed.  */
 
   int flag_upper_bound_is_count : 1;
 
@@ -1369,7 +1369,8 @@ extern bool set_type_align (struct type *, ULONGEST);
   dynprop->kind
 
 
-/* Moto-specific stuff for FORTRAN arrays.  */
+/* Accessors for struct range_bounds data attached to an array type's
+   index type.  */
 
 #define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED(arraytype) \
    TYPE_HIGH_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype))



More information about the Gdb-cvs mailing list