aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-06-29 13:19:19 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-06-29 13:19:19 +0000
commit0c8b41f1c6ca809238df5662ea5f45e5f7a29121 (patch)
tree3f517831cb9999e62eab83261b88fca342533b2c /gdb/dwarf2read.c
parent46bf50512ce837bbc53e8704dd5117db3273099b (diff)
downloadgdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.zip
gdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.tar.gz
gdb-0c8b41f1c6ca809238df5662ea5f45e5f7a29121.tar.bz2
* gdbtypes.h (make_function_type): Remove OBJFILE parameter.
* gdbtypes.c (make_function_type): Remove OBJFILE parameter. (lookup_function_type): Update call. * stabsread.c (read_type): Likewise. * dwarf2read.c (read_subroutine_type): Use lookup_function_type instead of make_function_type. * jv-lang.c (type_from_class): Likewise. Do not allocate types on the fake "dynamics" obstack.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4b52b6a..cd92843 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -5297,7 +5297,7 @@ read_subroutine_type (struct die_info *die, struct dwarf2_cu *cu)
struct attribute *attr;
type = die_type (die, cu);
- ftype = make_function_type (type, (struct type **) 0, cu->objfile);
+ ftype = lookup_function_type (type);
/* All functions in C++, Pascal and Java have prototypes. */
attr = dwarf2_attr (die, DW_AT_prototyped, cu);