Searched refs:dbg (Results 1 - 25 of 121) sorted by relevance

12345

/illumos-gate/usr/src/lib/libdwarf/common/
H A Dpro_init.c50 static void common_init(Dwarf_P_Debug dbg, Dwarf_Unsigned flags);
74 Dwarf_P_Debug dbg; local
75 dbg = (Dwarf_P_Debug) _dwarf_p_get_alloc(NULL,
78 if (dbg == NULL) {
79 DWARF_P_DBG_ERROR(dbg, DW_DLE_DBG_ALLOC,
82 memset((void *) dbg, 0, sizeof(struct Dwarf_P_Debug_s));
85 DWARF_P_DBG_ERROR(dbg, DW_DLE_NO_CALLBACK_FUNC,
88 dbg->de_callback_func_b = func;
89 dbg->de_errhand = errhand;
90 dbg
103 Dwarf_P_Debug dbg; local
127 common_init(Dwarf_P_Debug dbg, Dwarf_Unsigned flags) argument
[all...]
H A Dpro_finish.c48 dwarf_producer_finish(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
50 if (dbg->de_version_magic_number != PRO_VERSION_MAGIC) {
51 DWARF_P_DBG_ERROR(dbg, DW_DLE_IA, DW_DLV_NOCOUNT);
54 /* this frees all blocks, then frees dbg. */
55 _dwarf_p_dealloc_all(dbg);
H A Dpro_util.h40 #define IS_64BIT(dbg) ((dbg)->de_flags & DW_DLC_SIZE_64 ? 1 : 0)
41 #define ISA_IA64(dbg) ((dbg)->de_flags & DW_DLC_ISA_IA64 ? 1 : 0)
44 #define sizeof_sbyte(dbg) sizeof(Dwarf_Sbyte)
45 #define sizeof_ubyte(dbg) sizeof(Dwarf_Ubyte)
46 #define sizeof_uhalf(dbg) sizeof(Dwarf_Half)
47 /* certain sizes not defined here, but set in dbg record.
114 #define Get_REL64_isa(dbg) (R_SPARC_UA64)
115 #define Get_REL32_isa(dbg) (R_SPARC_UA3
[all...]
H A Dpro_macinfo.h39 int _dwarf_pro_transform_macro_info_to_disk(Dwarf_P_Debug dbg,
H A Dpro_reloc.h39 int _dwarf_pro_pre_alloc_n_reloc_slots(Dwarf_P_Debug dbg,
43 int _dwarf_pro_alloc_reloc_slots(Dwarf_P_Debug dbg, int rel_sec_index);
45 int _dwarf_pro_reloc_get_a_slot(Dwarf_P_Debug dbg,
H A Dpro_error.h44 #define DWARF_P_DBG_ERROR(dbg,errval,retval) \
45 _dwarf_p_error(dbg,error,errval); return(retval);
51 void _dwarf_p_error(Dwarf_P_Debug dbg, Dwarf_Error * error,
H A Dpro_line.c70 dwarf_add_line_entry(Dwarf_P_Debug dbg, argument
80 retval = _dwarf_pro_add_line_entry(dbg, file_index, code_address, 0,
92 dwarf_lne_set_address(Dwarf_P_Debug dbg, argument
101 _dwarf_pro_add_line_entry(dbg, 0, offs, symidx, 0, 0, 0, 0, opc,
112 dwarf_lne_end_sequence(Dwarf_P_Debug dbg, argument
120 _dwarf_pro_add_line_entry(dbg, 0, end_address, 0, 0, 0, 0, 0,
132 _dwarf_pro_add_line_entry(Dwarf_P_Debug dbg, argument
142 if (dbg->de_lines == NULL) {
143 dbg->de_lines = (Dwarf_P_Line)
144 _dwarf_p_get_alloc(dbg, sizeo
177 dwarf_add_directory_decl(Dwarf_P_Debug dbg, char *name, Dwarf_Error * error) argument
214 dwarf_add_file_decl(Dwarf_P_Debug dbg, char *name, Dwarf_Unsigned dir_idx, Dwarf_Unsigned time_mod, Dwarf_Unsigned length, Dwarf_Error * error) argument
[all...]
H A Dpro_alloc.h40 void _dwarf_p_dealloc(Dwarf_P_Debug dbg, Dwarf_Small * ptr);
42 void _dwarf_p_dealloc_all(Dwarf_P_Debug dbg);
H A Ddwarf_init_finish.c50 #define DWARF_DBG_ERROR(dbg,errval,retval) \
51 _dwarf_error(dbg, error, errval); return(retval);
58 /* This static is copied to the dbg on dbg init
91 get_basic_section_data(Dwarf_Debug dbg, argument
99 DWARF_DBG_ERROR(dbg, duperr, DW_DLV_ERROR);
107 DWARF_DBG_ERROR(dbg, emptyerr, DW_DLV_ERROR);
130 Given an Elf ptr, set up dbg with pointers
147 _dwarf_setup(Dwarf_Debug dbg, Dwarf_Error * error) argument
162 dbg
427 Dwarf_Debug dbg = 0; local
488 dwarf_object_finish(Dwarf_Debug dbg, Dwarf_Error * error) argument
508 _dwarf_load_section(Dwarf_Debug dbg, struct Dwarf_Section_s *section, Dwarf_Error * error) argument
552 dwarf_get_section_max_offsets(Dwarf_Debug dbg, Dwarf_Unsigned * debug_info_size, Dwarf_Unsigned * debug_abbrev_size, Dwarf_Unsigned * debug_line_size, Dwarf_Unsigned * debug_loc_size, Dwarf_Unsigned * debug_aranges_size, Dwarf_Unsigned * debug_macinfo_size, Dwarf_Unsigned * debug_pubnames_size, Dwarf_Unsigned * debug_str_size, Dwarf_Unsigned * debug_frame_size, Dwarf_Unsigned * debug_ranges_size, Dwarf_Unsigned * debug_typenames_size) argument
[all...]
H A Ddwarf_string.c43 dwarf_get_str(Dwarf_Debug dbg, argument
50 if (dbg == NULL) {
55 if (offset == dbg->de_debug_str.dss_size) {
60 if (offset > dbg->de_debug_str.dss_size) {
61 _dwarf_error(dbg, error, DW_DLE_DEBUG_STR_OFFSET_BAD);
66 _dwarf_error(dbg, error, DW_DLE_STRING_PTR_NULL);
70 res = _dwarf_load_section(dbg, &dbg->de_debug_str,error);
75 *string = (char *) dbg->de_debug_str.dss_data + offset;
H A Dpro_reloc_symbolic.h37 int _dwarf_pro_reloc_name_symbolic(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, /* r_offset
45 _dwarf_pro_reloc_length_symbolic(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, /* r_offset
54 int _dwarf_symbolic_relocs_to_disk(Dwarf_P_Debug dbg,
H A Ddwarf_macro.c113 free_macro_stack(Dwarf_Debug dbg, struct macro_stack_s *ms) argument
115 dwarf_dealloc(dbg,ms->st_base,DW_DLA_STRING);
129 _dwarf_macro_stack_push_index(Dwarf_Debug dbg, Dwarf_Signed indx, argument
142 _dwarf_get_alloc(dbg, DW_DLA_STRING,
152 dwarf_dealloc(dbg, ms->st_base, DW_DLA_STRING);
185 dwarf_get_macro_details(Dwarf_Debug dbg, argument
223 if (dbg == NULL) {
225 free_macro_stack(dbg,&msdata);
229 res = _dwarf_load_section(dbg, &dbg
[all...]
H A Dpro_reloc_stream.h39 int _dwarf_pro_reloc_name_stream64(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, /* r_offset
46 int _dwarf_pro_reloc_name_stream32(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, /* r_offset
53 int _dwarf_pro_reloc_length_stream(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, /* r_offset
62 int _dwarf_stream_relocs_to_disk(Dwarf_P_Debug dbg,
H A Dpro_types.h40 int _dwarf_transform_simplename_to_disk(Dwarf_P_Debug dbg, enum dwarf_sn_kind entrykind, int section_index, /* in
H A Ddwarf_error.h38 void _dwarf_error(Dwarf_Debug dbg, Dwarf_Error * error,
H A Dpro_types.c55 dwarf_add_typename(Dwarf_P_Debug dbg, argument
60 _dwarf_add_simple_name_entry(dbg, die, type_name,
72 _dwarf_add_simple_name_entry(Dwarf_P_Debug dbg, argument
83 if (dbg == NULL) {
95 _dwarf_p_get_alloc(dbg,
98 _dwarf_p_error(dbg, error, DW_DLE_ALLOC_FAIL);
102 name = _dwarf_p_get_alloc(dbg, strlen(entry_name) + 1);
104 _dwarf_p_error(dbg, error, DW_DLE_ALLOC_FAIL);
112 uword_size = dbg->de_offset_size;
114 hdr = &dbg
142 _dwarf_transform_simplename_to_disk(Dwarf_P_Debug dbg, enum dwarf_sn_kind entrykind, int section_index, Dwarf_Error * error) argument
[all...]
H A Dpro_arange.c59 dwarf_add_arange(Dwarf_P_Debug dbg, argument
64 return dwarf_add_arange_b(dbg, begin_address, length, symbol_index,
77 dwarf_add_arange_b(Dwarf_P_Debug dbg, argument
86 if (dbg == NULL) {
92 _dwarf_p_get_alloc(dbg, sizeof(struct Dwarf_P_Arange_s));
94 _dwarf_p_error(dbg, error, DW_DLE_ALLOC_FAIL);
104 if (dbg->de_arange == NULL)
105 dbg->de_arange = dbg->de_last_arange = arange;
107 dbg
117 _dwarf_transform_arange_to_disk(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
[all...]
H A Dpro_reloc_stream.c64 _dwarf_pro_reloc_name_stream64(Dwarf_P_Debug dbg, argument
77 res = _dwarf_pro_reloc_get_a_slot(dbg, base_sec_index,
84 if (reltarget_length == dbg->de_offset_size) {
85 rel_type = dbg->de_offset_reloc;
86 } else if (reltarget_length == dbg->de_pointer_size) {
87 rel_type = dbg->de_ptr_reloc;
92 rel_type = dbg->de_exc_reloc;
114 _dwarf_pro_reloc_name_stream32(Dwarf_P_Debug dbg, int base_sec_index, argument
125 res = _dwarf_pro_reloc_get_a_slot(dbg, base_sec_index,
130 if (reltarget_length == dbg
162 _dwarf_pro_reloc_length_stream(Dwarf_P_Debug dbg, int base_sec_index, Dwarf_Unsigned offset, Dwarf_Unsigned start_symidx, Dwarf_Unsigned end_symidx, enum Dwarf_Rel_Type type, int reltarget_length) argument
190 _dwarf_stream_relocs_to_disk(Dwarf_P_Debug dbg, Dwarf_Signed * new_sec_count) argument
[all...]
H A Dpro_section.h88 Dwarf_Small *_dwarf_pro_buffer(Dwarf_P_Debug dbg, int sectno,
91 #define GET_CHUNK(dbg,sectno,ptr,nbytes,error) \
93 (ptr) = _dwarf_pro_buffer((dbg),(sectno),(nbytes)); \
95 DWARF_P_DBG_ERROR(dbg,DW_DLE_CHUNK_ALLOC,-1); \
102 _dwarf_transform_arange_to_disk(Dwarf_P_Debug dbg,
H A Dpro_error.c60 _dwarf_p_error(Dwarf_P_Debug dbg, argument
65 /* Allow NULL dbg on entry, since sometimes that can happen and we
72 _dwarf_p_get_alloc(dbg, sizeof(struct Dwarf_Error_s));
83 if (dbg != NULL && dbg->de_errhand != NULL) {
85 _dwarf_p_get_alloc(dbg, sizeof(struct Dwarf_Error_s));
92 dbg->de_errhand(errptr, dbg->de_errarg);
H A Dpro_section.c146 static int _dwarf_pro_generate_debugline(Dwarf_P_Debug dbg,
148 static int _dwarf_pro_generate_debugframe(Dwarf_P_Debug dbg,
150 static int _dwarf_pro_generate_debuginfo(Dwarf_P_Debug dbg,
182 dwarf_need_debug_line_section(Dwarf_P_Debug dbg) argument
184 if (dbg->de_lines == NULL && dbg->de_file_entries == NULL
185 && dbg->de_inc_dirs == NULL) {
197 dwarf_transform_to_disk_form(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
209 if (dbg->de_version_magic_number != PRO_VERSION_MAGIC) {
210 DWARF_P_DBG_ERROR(dbg, DW_DLE_I
442 _dwarf_pro_generate_debugline(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
890 _dwarf_pro_generate_debugframe(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
1315 marker_init(Dwarf_P_Debug dbg, unsigned count) argument
1332 marker_add(Dwarf_P_Debug dbg, Dwarf_Unsigned offset, Dwarf_Unsigned marker) argument
1347 dwarf_get_die_markers(Dwarf_P_Debug dbg, Dwarf_P_Marker * marker_list, Dwarf_Unsigned * marker_count, Dwarf_Error * error) argument
1371 string_attr_init(Dwarf_P_Debug dbg, Dwarf_Signed section_index, unsigned count) argument
1393 string_attr_add(Dwarf_P_Debug dbg, Dwarf_Signed section_index, Dwarf_Unsigned offset, Dwarf_P_Attribute attr) argument
1410 dwarf_get_string_attributes_count(Dwarf_P_Debug dbg, Dwarf_Unsigned * count_of_sa_sections, int *drd_buffer_version, Dwarf_Error *error) argument
1431 dwarf_get_string_attributes_info(Dwarf_P_Debug dbg, Dwarf_Signed *elf_section_index, Dwarf_Unsigned *sect_sa_buffer_count, Dwarf_P_String_Attr *sect_sa_buffer, Dwarf_Error *error) argument
1459 _dwarf_pro_generate_debuginfo(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
1957 dwarf_get_section_bytes(Dwarf_P_Debug dbg, Dwarf_Signed dwarf_section, Dwarf_Signed * section_idx, Dwarf_Unsigned * length, Dwarf_Error * error) argument
1993 dwarf_reset_section_bytes(Dwarf_P_Debug dbg) argument
2016 _dwarf_pro_buffer(Dwarf_P_Debug dbg, int elfsectno, unsigned long nbytes) argument
[all...]
H A Dpro_frame.c59 dwarf_add_frame_cie(Dwarf_P_Debug dbg, argument
69 if (dbg->de_frame_cies == NULL) {
70 dbg->de_frame_cies = (Dwarf_P_Cie)
71 _dwarf_p_get_alloc(dbg, sizeof(struct Dwarf_P_Cie_s));
72 if (dbg->de_frame_cies == NULL) {
73 DWARF_P_DBG_ERROR(dbg, DW_DLE_CIE_ALLOC, DW_DLV_NOCOUNT);
75 curcie = dbg->de_frame_cies;
76 dbg->de_n_cie = 1;
77 dbg->de_last_cie = curcie;
79 curcie = dbg
112 dwarf_add_frame_fde(Dwarf_P_Debug dbg, Dwarf_P_Fde fde, Dwarf_P_Die die, Dwarf_Unsigned cie, Dwarf_Unsigned virt_addr, Dwarf_Unsigned code_len, Dwarf_Unsigned symidx, Dwarf_Error * error) argument
126 dwarf_add_frame_fde_b(Dwarf_P_Debug dbg, Dwarf_P_Fde fde, Dwarf_P_Die die, Dwarf_Unsigned cie, Dwarf_Unsigned virt_addr, Dwarf_Unsigned code_len, Dwarf_Unsigned symidx, Dwarf_Unsigned symidx_of_end, Dwarf_Addr offset_from_end_sym, Dwarf_Error * error) argument
185 dwarf_add_frame_info(Dwarf_P_Debug dbg, Dwarf_P_Fde fde, Dwarf_P_Die die, Dwarf_Unsigned cie, Dwarf_Unsigned virt_addr, Dwarf_Unsigned code_len, Dwarf_Unsigned symidx, Dwarf_Signed offset_into_exception_tables, Dwarf_Unsigned exception_table_symbol, Dwarf_Error * error) argument
208 dwarf_add_frame_info_b(Dwarf_P_Debug dbg, Dwarf_P_Fde fde, Dwarf_P_Die die, Dwarf_Unsigned cie, Dwarf_Unsigned virt_addr, Dwarf_Unsigned code_len, Dwarf_Unsigned symidx, Dwarf_Unsigned end_symidx, Dwarf_Unsigned offset_from_end_symbol, Dwarf_Signed offset_into_exception_tables, Dwarf_Unsigned exception_table_symbol, Dwarf_Error * error) argument
252 dwarf_insert_fde_inst_bytes(Dwarf_P_Debug dbg, Dwarf_P_Fde fde,Dwarf_Unsigned len, Dwarf_Ptr ibytes, Dwarf_Error *error) argument
276 dwarf_new_fde(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
307 Dwarf_P_Debug dbg = fde->fde_dbg; local
382 Dwarf_P_Debug dbg = fde->fde_dbg; local
[all...]
H A Ddwarf_alloc.c75 static void _dwarf_simple_malloc_add_to_list(Dwarf_Debug dbg,
79 static void _dwarf_simple_malloc_delete_from_list(Dwarf_Debug dbg,
466 _dwarf_get_alloc(Dwarf_Debug dbg, argument
477 if (dbg == NULL) {
526 alloc_hdr = &dbg->de_alloc_hdr[index];
538 specialconstructor(dbg, m);
552 /* dwarf_init failure. Because dbg is incomplete we
575 _dwarf_simple_malloc_add_to_list(dbg, ret_mem, (unsigned long) size,
584 index_into_allocated[type].specialconstructor(dbg, ret_mem);
626 dwarf_dealloc(Dwarf_Debug dbg, argument
840 Dwarf_Debug dbg; local
881 _dwarf_setup_debug(Dwarf_Debug dbg) argument
908 dwarf_print_memory_stats(Dwarf_Debug dbg) argument
1033 _dwarf_free_all_of_one_debug(Dwarf_Debug dbg) argument
1167 _dwarf_simple_malloc_add_to_list(Dwarf_Debug dbg, Dwarf_Ptr addr, unsigned long size, short alloc_type) argument
1226 _dwarf_simple_malloc_delete_from_list(Dwarf_Debug dbg, Dwarf_Ptr space, short alloc_type) argument
[all...]
H A Ddwarf_die_deliv.c55 For a given Dwarf_Debug dbg, this function checks
59 internal routine, it is assumed that a valid dbg
69 _dwarf_find_CU_Context(Dwarf_Debug dbg, Dwarf_Off offset) argument
73 if (offset >= dbg->de_info_last_offset)
76 if (dbg->de_cu_context != NULL &&
77 dbg->de_cu_context->cc_next != NULL &&
78 dbg->de_cu_context->cc_next->cc_debug_info_offset == offset) {
80 return (dbg->de_cu_context->cc_next);
83 if (dbg->de_cu_context != NULL &&
84 dbg
120 _dwarf_find_offdie_CU_Context(Dwarf_Debug dbg, Dwarf_Off offset) argument
153 _dwarf_make_CU_Context(Dwarf_Debug dbg, Dwarf_Off offset, Dwarf_Error * error) argument
251 dwarf_next_cu_header(Dwarf_Debug dbg, Dwarf_Unsigned * cu_header_length, Dwarf_Half * version_stamp, Dwarf_Unsigned * abbrev_offset, Dwarf_Half * address_size, Dwarf_Unsigned * next_cu_offset, Dwarf_Error * error) argument
269 dwarf_next_cu_header_b(Dwarf_Debug dbg, Dwarf_Unsigned * cu_header_length, Dwarf_Half * version_stamp, Dwarf_Unsigned * abbrev_offset, Dwarf_Half * address_size, Dwarf_Half * offset_size, Dwarf_Half * extension_size, Dwarf_Unsigned * next_cu_offset, Dwarf_Error * error) argument
408 Dwarf_Debug dbg = 0; local
541 dwarf_siblingof(Dwarf_Debug dbg, Dwarf_Die die, Dwarf_Die * caller_ret_die, Dwarf_Error * error) argument
689 Dwarf_Debug dbg; local
757 dwarf_offdie(Dwarf_Debug dbg, Dwarf_Off offset, Dwarf_Die * new_die, Dwarf_Error * error) argument
[all...]
H A Dpro_macinfo.c66 libdwarf_compose_begin(Dwarf_P_Debug dbg, int code, argument
70 struct dw_macinfo_block_s *curblk = dbg->de_current_macinfo;
84 (struct dw_macinfo_block_s *) _dwarf_p_get_alloc(dbg, len);
94 dbg->de_first_macinfo = newb;
95 dbg->de_current_macinfo = newb;
103 dbg->de_current_macinfo->mb_macinfo_data_space_len * 2;
109 (struct dw_macinfo_block_s *) _dwarf_p_get_alloc(dbg, len);
119 dbg->de_first_macinfo->mb_next = newb;
120 dbg->de_current_macinfo = newb;
124 dbg
137 libdwarf_compose_add_string(Dwarf_P_Debug dbg, char *string, size_t len) argument
154 libdwarf_compose_add_line(Dwarf_P_Debug dbg, Dwarf_Unsigned line, int *compose_error_type) argument
187 libdwarf_compose_complete(Dwarf_P_Debug dbg, int *compose_error_type) argument
203 dwarf_def_macro(Dwarf_P_Debug dbg, Dwarf_Unsigned line, char *macname, char *macvalue, Dwarf_Error * error) argument
263 dwarf_undef_macro(Dwarf_P_Debug dbg, Dwarf_Unsigned line, char *macname, Dwarf_Error * error) argument
308 dwarf_start_macro_file(Dwarf_P_Debug dbg, Dwarf_Unsigned fileindex, Dwarf_Unsigned linenumber, Dwarf_Error * error) argument
343 dwarf_end_macro_file(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
369 dwarf_vendor_ext(Dwarf_P_Debug dbg, Dwarf_Unsigned constant, char *string, Dwarf_Error * error) argument
415 _dwarf_pro_transform_macro_info_to_disk(Dwarf_P_Debug dbg, Dwarf_Error * error) argument
[all...]

Completed in 84 milliseconds

12345