* stabsread.c (read_type): Treat a negative type number at the start
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 12 Oct 1993 23:55:13 +0000 (23:55 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 12 Oct 1993 23:55:13 +0000 (23:55 +0000)
of a type as a type reference, not as a definition of a type with
"50=" omitted.  This makes things work on the RS/6000 again (the
14 Sep 1993 change broke it).

gdb/ChangeLog
gdb/stabsread.c

index 88a4b9bf245f05310a712f9cada2a0d8c99bab68..fff55be8f9e231cab584eaa7d0e113f0db9068bd 100644 (file)
@@ -1,5 +1,10 @@
 Tue Oct 12 08:59:15 1993  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
+       * stabsread.c (read_type): Treat a negative type number at the start
+       of a type as a type reference, not as a definition of a type with
+       "50=" omitted.  This makes things work on the RS/6000 again (the
+       14 Sep 1993 change broke it).
+
        * inflow.c: Use 0 (standard input) not scb->fd.
        (terminal_ours_1): If printing warning, don't claim it happened in
        terminal_inferior.
index 667f5192904809bcc1430f254a515263483cb30f..f7b817eff2345d86ec23f246a1ed01f2c8d1881a 100644 (file)
@@ -1219,7 +1219,8 @@ read_type (pp, objfile)
      for instance in a two-dimensional array declared with type
      "ar1;1;10;ar1;1;10;4".  */
   if ((**pp >= '0' && **pp <= '9')
-      || **pp == '(')
+      || **pp == '('
+      || **pp == '-')
     {
       if (read_type_number (pp, typenums) != 0)
        return error_type (pp);
This page took 0.032779 seconds and 4 git commands to generate.