aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1996-10-19 00:31:53 +0000
committerMark Alexander <marka@cygnus>1996-10-19 00:31:53 +0000
commit91d12e123a3a685a00ce6dc744cd94f700295143 (patch)
tree5fb658ae1cfd2d288983318b178b684d2d094d2c
parent30bddd3369ea7011c1dcfe65e8054b305a561259 (diff)
downloadgdb-91d12e123a3a685a00ce6dc744cd94f700295143.zip
gdb-91d12e123a3a685a00ce6dc744cd94f700295143.tar.gz
gdb-91d12e123a3a685a00ce6dc744cd94f700295143.tar.bz2
* mdebugread.c (parse_symbol): Fix crash when malloc has
no type info and void type has no associated pointer type.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mdebugread.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 622561e..bea4a5c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index a992658..49db557 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -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;