PR symtab/11199:
	* dwarf2read.c (quirk_gcc_member_function_pointer): Change return
	type and arguments.  Use smash_to_methodptr_type.
	(read_structure_type): Call quirk_gcc_member_function_pointer
	later.
	* gdbtypes.h (smash_to_methodptr_type): Declare.
	* gdbtypes.c (smash_to_methodptr_type): New function.
	(lookup_methodptr_type): Use it.
gdb/testsuite
2010-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

	PR symtab/11199:
	* gdb.dwarf2/member-ptr-forwardref.exp,
	gdb.dwarf2/member-ptr-forwardref.S: New.
This commit is contained in:
Tom Tromey
2010-01-22 17:06:49 +00:00
parent 911e63d0e7
commit 0b92b5bb46
7 changed files with 432 additions and 47 deletions

View File

@@ -1312,6 +1312,8 @@ extern void smash_to_method_type (struct type *type, struct type *domain,
extern void smash_to_memberptr_type (struct type *, struct type *,
struct type *);
extern void smash_to_methodptr_type (struct type *, struct type *);
extern struct type *allocate_stub_method (struct type *);
extern char *type_name_no_tag (const struct type *);