* findvar.c (value_from_register): Doc fix.
authorJim Blandy <jimb@codesourcery.com>
Thu, 19 Feb 2004 22:45:31 +0000 (22:45 +0000)
committerJim Blandy <jimb@codesourcery.com>
Thu, 19 Feb 2004 22:45:31 +0000 (22:45 +0000)
gdb/ChangeLog
gdb/findvar.c

index 11368fb..a6c6f96 100644 (file)
@@ -1,3 +1,7 @@
+2004-02-19  Jim Blandy  <jimb@redhat.com>
+
+       * findvar.c (value_from_register): Doc fix.
+
 2004-02-19  Jeff Johnston  <jjohnstn@redhat.com>
 
        * printcmd.c (print_scalar_formatted): Do not check for sizeof
index 3cb40b2..cb1ef65 100644 (file)
@@ -627,14 +627,14 @@ value_from_register (struct type *type, int regnum, struct frame_info *frame)
          error.  
 
          Zero-length types can legitimately arise from declarations
-         like 'struct {}'.  GDB may also create them when it finds
-         bogus debugging information; for example, in GCC 2.95.4 and
-         binutils 2.11.93.0.2, the STABS BINCL->EXCL compression
-         process can create bad type numbers.  GDB reads these as
-         TYPE_CODE_UNDEF types, with zero length.  (That bug is
-         actually the only known way to get a zero-length value
-         allocated to a register --- which is what it takes to make it
-         here.)
+         like 'struct {}' (a GCC extension, not valid ISO C).  GDB may
+         also create them when it finds bogus debugging information;
+         for example, in GCC 2.95.4 and binutils 2.11.93.0.2, the
+         STABS BINCL->EXCL compression process can create bad type
+         numbers.  GDB reads these as TYPE_CODE_UNDEF types, with zero
+         length.  (That bug is actually the only known way to get a
+         zero-length value allocated to a register --- which is what
+         it takes to make it here.)
 
          We'll just attribute the value to the original register.  */
       VALUE_LVAL (v) = lval_register;