aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-05-01 14:43:21 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-05-01 14:43:21 +0000
commit323427d1cbb214ea9710ff62581b5635bebb32f3 (patch)
tree22fd41a78745dd0e5dd51f0ebfe9f989da5a7133 /gdb/dwarf2read.c
parent00adf2d4698cba8b2829652c2bc38c23df3d0ac0 (diff)
downloadgdb-323427d1cbb214ea9710ff62581b5635bebb32f3.zip
gdb-323427d1cbb214ea9710ff62581b5635bebb32f3.tar.gz
gdb-323427d1cbb214ea9710ff62581b5635bebb32f3.tar.bz2
gdb/
Make specifiable the make_function_type type memory ownership. * gdbtypes.c (make_function_type): New parameter `objfile', use it explicitely instead of TYPE-initialized removed local variable `objfile'. Describe `objfile' it in the function comment. (lookup_function_type): Update make_function_type callers. * gdbtypes.h (make_function_type): Update the prototype. * jv-lang.c (java_link_class_type): Update make_function_type callers. * dwarf2read.c (read_subroutine_type): Likewise. * stabsread.c (read_type): Likewise.
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 ee1490d..6ddaecd 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -5110,7 +5110,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);
+ ftype = make_function_type (type, (struct type **) 0, cu->objfile);
/* All functions in C++, Pascal and Java have prototypes. */
attr = dwarf2_attr (die, DW_AT_prototyped, cu);