* python/py-autoload.c (print_script): Print "Missing" instead of
[deliverable/binutils-gdb.git] / gdb / stabsread.c
index b57d92a2f0602a15de02f5e914f3d07b6162b598..c7d8a6c4743dd18ce008aa8ae8f6bf3c5c0093c2 100644 (file)
@@ -636,6 +636,12 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int type,
     {
       p += 2;
       p = strchr (p, ':');
+      if (p == NULL)
+       {
+         complaint (&symfile_complaints, 
+                    _("Bad stabs string '%s'"), string);
+         return NULL;
+       }
     }
 
   /* If a nameless stab entry, all we need is the type, not the symbol.
@@ -2124,6 +2130,7 @@ rs6000_builtin_type (int typenum, struct objfile *objfile)
     case 9:
       rettype = init_type (TYPE_CODE_INT, 4, TYPE_FLAG_UNSIGNED,
                           "unsigned", objfile);
+      break;
     case 10:
       rettype = init_type (TYPE_CODE_INT, 4, TYPE_FLAG_UNSIGNED,
                           "unsigned long", objfile);
@@ -3477,7 +3484,7 @@ set_length_in_type_chain (struct type *type)
    describing the type.
 
    PP points to a character pointer that points to the next unconsumed token
-   in the the stabs string.  For example, given stabs "A:T4=s4a:1,0,32;;",
+   in the stabs string.  For example, given stabs "A:T4=s4a:1,0,32;;",
    *PP will point to "4a:1,0,32;;".
 
    TYPE points to an incomplete type that needs to be filled in.
This page took 0.023749 seconds and 4 git commands to generate.