* dwarf2read.c (read_subroutine_type): Call make_function_type
authorCorinna Vinschen <corinna@vinschen.de>
Wed, 6 Oct 2004 08:46:21 +0000 (08:46 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Wed, 6 Oct 2004 08:46:21 +0000 (08:46 +0000)
instead of lookup_function_type.

gdb/ChangeLog
gdb/dwarf2read.c

index 608fecf01da20a9672dbd3059e2edf6e1d05146f..0b7c15c487eb70856025874d59f05ba5a87a9804 100644 (file)
@@ -1,3 +1,8 @@
+2004-10-06  Corinna Vinschen  <vinschen@redhat.com>
+
+       * dwarf2read.c (read_subroutine_type): Call make_function_type
+       instead of lookup_function_type.
+
 2004-10-05  Jim Blandy  <jimb@redhat.com>
 
        * linux-nat.c (_initialize_linux_nat): Rename child_ops.
index f6b7eca582aacef175ba884fc33438ba145c244c..9e1bbb909c19ae0ec5724ce4d0c70e4e8d26e307 100644 (file)
@@ -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);