* mdebugread.c (parse_symbol): Fix crash when malloc has
authorMark Alexander <marka@cygnus>
Sat, 19 Oct 1996 00:31:53 +0000 (00:31 +0000)
committerMark Alexander <marka@cygnus>
Sat, 19 Oct 1996 00:31:53 +0000 (00:31 +0000)
no type info and void type has no associated pointer type.

gdb/ChangeLog
gdb/mdebugread.c

index 622561e9938b8805ab0b3a7e9cd3dc2fe7663b31..bea4a5c44893d70f5d3b7dc069e2b439badc01c9 100644 (file)
@@ -1,3 +1,8 @@
+Fri Oct 18 17:26:22 1996  Mark Alexander  <marka@cygnus.com>
+
+       * mdebugread.c (parse_symbol): Fix crash when malloc has
+       no type info and void type has no associated pointer type.
+
 Thu Oct 17 18:18:20 1996  Stan Shebs  <shebs@andros.cygnus.com>
 
        * configure.host: New file, host configuration mapping.
index a992658d26f04516aa4a60a61249ec3c2fc1566e..49db55778a900ed9381e04a699e3038b479124da 100644 (file)
@@ -866,7 +866,7 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets)
                 patch up the type and make it void*
                 instead. (davidm@azstarnet.com)
                 */
-             t = t->pointer_type;
+             t = make_pointer_type (t, NULL);
            }
        }
       b = top_stack->cur_block;