diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-05-01 14:43:21 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2009-05-01 14:43:21 +0000 |
commit | 323427d1cbb214ea9710ff62581b5635bebb32f3 (patch) | |
tree | 22fd41a78745dd0e5dd51f0ebfe9f989da5a7133 /gdb/stabsread.c | |
parent | 00adf2d4698cba8b2829652c2bc38c23df3d0ac0 (diff) | |
download | gdb-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/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 5ce53e3..20bc4f5 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -1685,7 +1685,7 @@ again: case 'f': /* Function returning another type */ type1 = read_type (pp, objfile); - type = make_function_type (type1, dbx_lookup_type (typenums)); + type = make_function_type (type1, dbx_lookup_type (typenums), objfile); break; case 'g': /* Prototyped function. (Sun) */ @@ -1708,7 +1708,8 @@ again: const char *type_start = (*pp) - 1; struct type *return_type = read_type (pp, objfile); struct type *func_type - = make_function_type (return_type, dbx_lookup_type (typenums)); + = make_function_type (return_type, dbx_lookup_type (typenums), + objfile); struct type_list { struct type *type; struct type_list *next; |