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/gdbtypes.h | |
parent | 00adf2d4698cba8b2829652c2bc38c23df3d0ac0 (diff) | |
download | binutils-323427d1cbb214ea9710ff62581b5635bebb32f3.zip binutils-323427d1cbb214ea9710ff62581b5635bebb32f3.tar.gz binutils-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/gdbtypes.h')
-rw-r--r-- | gdb/gdbtypes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index 3c4e948..fc54acc 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -1165,7 +1165,8 @@ extern struct type *make_pointer_type (struct type *, struct type **); extern struct type *lookup_pointer_type (struct type *); -extern struct type *make_function_type (struct type *, struct type **); +extern struct type *make_function_type (struct type *, struct type **, + struct objfile *); extern struct type *lookup_function_type (struct type *); |