forked from Imagelibrary/binutils-gdb
* gdbtypes.h (builtin_type_void): Remove macro, add declaration.
(builtin_type_f_void): Remove macro. * gdbtypes.c (builtin_type_void): New global variable. (_initialize_gdbtypes): Initialize it. * gnu-v3-abi.c (build_gdb_vtable_type): Do not call lookup_pointer_type or lookup_function_type on builtin_type_void. * printcmd.c (set_next_address): Likewise. * objc-lang.c (value_nsstring): Likewise. * mt-tdep.c (mt_copro_register_type): Likewise. * xtensa-tdep.c (xtensa_register_type): Likewise. * symfile.c (syms_from_objfile): Remove special handling of builtin_type_void and builtin_type_char.
This commit is contained in:
@@ -896,14 +896,6 @@ syms_from_objfile (struct objfile *objfile,
|
||||
|
||||
(*objfile->sf->sym_read) (objfile, mainline);
|
||||
|
||||
/* Don't allow char * to have a typename (else would get caddr_t).
|
||||
Ditto void *. FIXME: Check whether this is now done by all the
|
||||
symbol readers themselves (many of them now do), and if so remove
|
||||
it from here. */
|
||||
|
||||
TYPE_NAME (lookup_pointer_type (builtin_type_char)) = 0;
|
||||
TYPE_NAME (lookup_pointer_type (builtin_type_void)) = 0;
|
||||
|
||||
/* Mark the objfile has having had initial symbol read attempted. Note
|
||||
that this does not mean we found any symbols... */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user