GDB (xrefs)
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
type_allocator Class Reference

#include "gdbtypes.h"

Public Types

enum  type_allocator_kind { SAME = 0 , SMASH = 1 }
 

Public Member Functions

 type_allocator (objfile *objfile, enum language lang)
 
 type_allocator (gdbarch *gdbarch)
 
 type_allocator (struct type *type, type_allocator_kind kind=SAME)
 
 type_allocator (const struct type *type)
 
typenew_type ()
 
typenew_type (enum type_code code, int bit, const char *name)
 
gdbarcharch ()
 

Private Attributes

union { 
 
   struct objfile *   objfile 
 
   struct gdbarch *   gdbarch 
 
   struct type *   type 
 
m_data 
 
bool m_is_objfile = false
 
bool m_smash = false
 
enum language m_lang
 

Detailed Description

Definition at line 2243 of file gdbtypes.h.

Member Enumeration Documentation

◆ type_allocator_kind

Enumerator
SAME 
SMASH 

Definition at line 2265 of file gdbtypes.h.

Constructor & Destructor Documentation

◆ type_allocator() [1/4]

type_allocator::type_allocator ( objfile * objfile,
enum language lang )
inline

Definition at line 2248 of file gdbtypes.h.

References m_data, and objfile.

◆ type_allocator() [2/4]

type_allocator::type_allocator ( gdbarch * gdbarch)
inlineexplicit

Definition at line 2256 of file gdbtypes.h.

References gdbarch, and m_data.

◆ type_allocator() [3/4]

type_allocator::type_allocator ( struct type * type,
type_allocator_kind kind = SAME )
inlineexplicit

◆ type_allocator() [4/4]

type_allocator::type_allocator ( const struct type * type)
inlineexplicit

Member Function Documentation

◆ arch()

gdbarch * type_allocator::arch ( )

Definition at line 261 of file gdbtypes.c.

References m_data, m_is_objfile, and m_smash.

Referenced by init_float_type().

◆ new_type() [1/2]

type * type_allocator::new_type ( )

Definition at line 208 of file gdbtypes.c.

References gdbarch_obstack(), m_data, m_is_objfile, m_lang, m_smash, OBJSTAT, type::set_code(), type::set_owner(), type, TYPE_CHAIN, TYPE_CODE_UNDEF, and TYPE_MAIN_TYPE.

Referenced by ada_template_to_fixed_record_type_1(), allocate_stub_method(), amd_dbgapi_register_type_to_gdb_type(), arch_composite_type(), arch_flags_type(), avr_gdbarch_init(), basic_type(), build_error_marker_type(), build_fortran_types(), build_std_type_info_type(), check_typedef(), coff_alloc_type(), copy_type(), copy_type_recursive(), create_array_type_with_stride(), create_enum(), create_gdbtypes_data(), create_range_type(), create_set_type(), cross_ref(), dbx_alloc_type(), dbx_init_float_type(), dwarf2_add_member_fn(), dwarf2_init_float_type(), empty_record(), fbsd_get_siginfo_type(), fixup_go_packaging(), ft32_gdbarch_init(), get_gdb_vtable_type(), init_boolean_type(), init_character_type(), init_complex_type(), init_decfloat_type(), init_fixed_point_type(), init_float_type(), init_integer_type(), init_pointer_type(), ada_language::language_arch_info(), linux_get_siginfo_type_with_fields(), lookup_memberptr_type(), lookup_methodptr_type(), make_function_type(), make_gdb_type(), make_pointer_type(), make_reference_type(), make_types(), nbsd_get_siginfo_type(), new_type(), new_type(), parse_type(), quirk_ada_thick_pointer(), quirk_gcc_member_function_pointer(), quirk_rust_enum(), read_base_type(), read_enumeration_type(), read_module_type(), read_namespace_type(), read_range_type(), read_structure_type(), read_sun_builtin_type(), read_tag_ptr_to_member_type(), read_typedef(), read_unspecified_type(), rl78_gdbarch_init(), rs6000_builtin_type(), rust_composite_type(), template_to_static_fixed_type(), to_record_with_fixed_variant_part(), windows_get_tlb_type(), and z80_gdbarch_init().

◆ new_type() [2/2]

type * type_allocator::new_type ( enum type_code code,
int bit,
const char * name )

Member Data Documentation

◆ gdbarch

struct gdbarch* type_allocator::gdbarch

Definition at line 2327 of file gdbtypes.h.

Referenced by type_allocator().

◆ [union]

union { ... } type_allocator::m_data

◆ m_is_objfile

bool type_allocator::m_is_objfile = false
private

Definition at line 2332 of file gdbtypes.h.

Referenced by arch(), new_type(), new_type(), and type_allocator().

◆ m_lang

enum language type_allocator::m_lang
private

Definition at line 2337 of file gdbtypes.h.

Referenced by new_type().

◆ m_smash

bool type_allocator::m_smash = false
private

Definition at line 2335 of file gdbtypes.h.

Referenced by arch(), new_type(), and type_allocator().

◆ objfile

struct objfile* type_allocator::objfile

Definition at line 2326 of file gdbtypes.h.

Referenced by type_allocator().

◆ type

struct type* type_allocator::type

Definition at line 2328 of file gdbtypes.h.

Referenced by new_type(), new_type(), and type_allocator().


The documentation for this class was generated from the following files: