diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 608fecf01d..0b7c15c487 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-10-06 Corinna Vinschen + + * dwarf2read.c (read_subroutine_type): Call make_function_type + instead of lookup_function_type. + 2004-10-05 Jim Blandy * linux-nat.c (_initialize_linux_nat): Rename child_ops. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index f6b7eca582..9e1bbb909c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4569,7 +4569,7 @@ read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu) return; } type = die_type (die, cu); - ftype = lookup_function_type (type); + ftype = make_function_type (type, (struct type **) 0); /* All functions in C++ and Java have prototypes. */ attr = dwarf2_attr (die, DW_AT_prototyped, cu);