Lines Matching refs:dbg

49 static int _dwarf_read_loc_section_dwo(Dwarf_Debug dbg,
129 _dwarf_free_op_chain(Dwarf_Debug dbg, in _dwarf_free_op_chain() argument
136 dwarf_dealloc(dbg, cur, DW_DLA_LOC_CHAIN); in _dwarf_free_op_chain()
168 _dwarf_get_locdesc(Dwarf_Debug dbg, in _dwarf_get_locdesc() argument
204 res = _dwarf_loc_block_sanity_check(dbg,loc_block,error); in _dwarf_get_locdesc()
214 res = _dwarf_read_loc_expr_op(dbg,loc_block, in _dwarf_get_locdesc()
225 _dwarf_free_op_chain(dbg, head_loc); in _dwarf_get_locdesc()
234 (Dwarf_Loc_Chain) _dwarf_get_alloc(dbg, in _dwarf_get_locdesc()
239 _dwarf_free_op_chain(dbg, head_loc); in _dwarf_get_locdesc()
246 _dwarf_error_string(dbg, error, DW_DLE_ALLOC_FAIL, in _dwarf_get_locdesc()
273 (Dwarf_Loc *) _dwarf_get_alloc(dbg, DW_DLA_LOC_BLOCK, in _dwarf_get_locdesc()
276 _dwarf_free_op_chain(dbg, head_loc); in _dwarf_get_locdesc()
277 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_get_locdesc()
291 dwarf_dealloc(dbg, prev_loc, DW_DLA_LOC_CHAIN); in _dwarf_get_locdesc()
295 (Dwarf_Locdesc *) _dwarf_get_alloc(dbg, DW_DLA_LOCDESC, 1); in _dwarf_get_locdesc()
297 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_get_locdesc()
320 _dwarf_read_loc_section(Dwarf_Debug dbg, in _dwarf_read_loc_section() argument
330 Dwarf_Small *beg = dbg->de_debug_loc.dss_data + sec_offset; in _dwarf_read_loc_section()
332 dbg->de_debug_loc.dss_data + dbg->de_debug_loc.dss_size; in _dwarf_read_loc_section()
343 if (sec_offset >= dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section()
349 if (exprblock_off > dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section()
355 READ_UNALIGNED_CK(dbg, start_addr, Dwarf_Addr, beg, address_size, in _dwarf_read_loc_section()
357 READ_UNALIGNED_CK(dbg, end_addr, Dwarf_Addr, in _dwarf_read_loc_section()
375 READ_UNALIGNED_CK(dbg, exprblock_size, Dwarf_Half, in _dwarf_read_loc_section()
379 if ( exprblock_size >= dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section()
380 _dwarf_error(dbg, error, DW_DLE_DEBUG_LOC_SECTION_SHORT); in _dwarf_read_loc_section()
384 dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section()
385 _dwarf_error(dbg, error, DW_DLE_DEBUG_LOC_SECTION_SHORT); in _dwarf_read_loc_section()
398 dbg->de_debug_loc.dss_data; in _dwarf_read_loc_section()
403 _dwarf_get_loclist_lle_count_dwo(Dwarf_Debug dbg, in _dwarf_get_loclist_lle_count_dwo() argument
419 int res = _dwarf_read_loc_section_dwo(dbg, &b, in _dwarf_get_loclist_lle_count_dwo()
443 _dwarf_get_loclist_lle_count(Dwarf_Debug dbg, in _dwarf_get_loclist_lle_count() argument
460 int res = _dwarf_read_loc_section(dbg, &b, in _dwarf_get_loclist_lle_count()
486 Dwarf_Debug dbg = 0; in _dwarf_setup_loc() local
500 dbg = attr->ar_cu_context->cc_dbg; in _dwarf_setup_loc()
501 if (dbg == NULL) { in _dwarf_setup_loc()
505 *dbg_ret = dbg; in _dwarf_setup_loc()
508 _dwarf_error(dbg, error, DW_DLE_LOC_EXPR_BAD); in _dwarf_setup_loc()
518 _dwarf_get_loclist_header_start(Dwarf_Debug dbg, in _dwarf_get_loclist_header_start() argument
530 if (!dbg->de_debug_loc.dss_data) { in _dwarf_get_loclist_header_start()
531 int secload = _dwarf_load_section(dbg, &dbg->de_debug_loc,error); in _dwarf_get_loclist_header_start()
535 if (!dbg->de_debug_loc.dss_size) { in _dwarf_get_loclist_header_start()
539 loc_sec_size = dbg->de_debug_loc.dss_size; in _dwarf_get_loclist_header_start()
541 _dwarf_error(dbg, error, DW_DLE_LOCLIST_OFFSET_BAD); in _dwarf_get_loclist_header_start()
556 _dwarf_error(dbg, error, DW_DLE_LOCLIST_OFFSET_BAD); in _dwarf_get_loclist_header_start()
561 _dwarf_error(dbg, error, DW_DLE_LOCLIST_OFFSET_BAD); in _dwarf_get_loclist_header_start()
574 _dwarf_cleanup_llbuf(Dwarf_Debug dbg, Dwarf_Locdesc ** llbuf, int count) in _dwarf_cleanup_llbuf() argument
578 dwarf_dealloc(dbg, llbuf[i]->ld_s, DW_DLA_LOC_BLOCK); in _dwarf_cleanup_llbuf()
579 dwarf_dealloc(dbg, llbuf[i], DW_DLA_LOCDESC); in _dwarf_cleanup_llbuf()
581 dwarf_dealloc(dbg, llbuf, DW_DLA_LIST); in _dwarf_cleanup_llbuf()
612 Dwarf_Debug dbg = 0; in dwarf_loclist_n() local
642 setup_res = _dwarf_setup_loc(attr, &dbg,&cucontext, &form, error); in dwarf_loclist_n()
654 _dwarf_error(dbg, error, DW_DLE_LOCLIST_INTERFACE_ERROR); in dwarf_loclist_n()
663 _dwarf_error(dbg, error, DW_DLE_LOCLIST_INTERFACE_ERROR); in dwarf_loclist_n()
682 off_res = _dwarf_get_loclist_header_start(dbg, in dwarf_loclist_n()
687 count_res = _dwarf_get_loclist_lle_count(dbg, loclist_offset, in dwarf_loclist_n()
698 _dwarf_get_alloc(dbg, DW_DLA_LIST, loclist_count); in dwarf_loclist_n()
700 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in dwarf_loclist_n()
708 blkres = _dwarf_read_loc_section(dbg, in dwarf_loclist_n()
717 _dwarf_cleanup_llbuf(dbg, llbuf, lli); in dwarf_loclist_n()
720 loc_section_end = dbg->de_debug_loc.dss_data+ in dwarf_loclist_n()
721 dbg->de_debug_loc.dss_size; in dwarf_loclist_n()
722 lres = _dwarf_get_locdesc(dbg, in dwarf_loclist_n()
732 _dwarf_cleanup_llbuf(dbg, llbuf, lli); in dwarf_loclist_n()
752 (char *)dbg->de_debug_info.dss_data; in dwarf_loclist_n()
767 dwarf_dealloc(dbg, tblock, DW_DLA_BLOCK); in dwarf_loclist_n()
780 blkres = _dwarf_get_locdesc(dbg, &loc_block, in dwarf_loclist_n()
793 _dwarf_get_alloc(dbg, DW_DLA_LIST, listlen); in dwarf_loclist_n()
796 dwarf_dealloc(dbg, locdesc, DW_DLA_LOCDESC); in dwarf_loclist_n()
797 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in dwarf_loclist_n()
827 Dwarf_Debug dbg = 0; in dwarf_loclist() local
852 setup_res = _dwarf_setup_loc(attr, &dbg, &cucontext, &form, error); in dwarf_loclist()
866 _dwarf_error(dbg, error, DW_DLE_LOCLIST_INTERFACE_ERROR); in dwarf_loclist()
879 off_res = _dwarf_get_loclist_header_start(dbg, in dwarf_loclist()
887 blkres = _dwarf_read_loc_section(dbg, &loc_block, in dwarf_loclist()
908 (char *)dbg->de_debug_info.dss_data; in dwarf_loclist()
925 dwarf_dealloc(dbg, tblock, DW_DLA_BLOCK); in dwarf_loclist()
942 blkres = _dwarf_get_locdesc(dbg, &loc_block, in dwarf_loclist()
977 dwarf_loclist_from_expr(Dwarf_Debug dbg, in dwarf_loclist_from_expr() argument
984 Dwarf_Half addr_size = dbg->de_pointer_size; in dwarf_loclist_from_expr()
985 res = dwarf_loclist_from_expr_a(dbg,expression_in, in dwarf_loclist_from_expr()
997 dwarf_loclist_from_expr_a(Dwarf_Debug dbg, in dwarf_loclist_from_expr_a() argument
1006 Dwarf_Debug_InfoTypes info_reading = &dbg->de_info_reading; in dwarf_loclist_from_expr_a()
1010 Dwarf_Half offset_size = dbg->de_length_size; in dwarf_loclist_from_expr_a()
1025 res = dwarf_loclist_from_expr_b(dbg, in dwarf_loclist_from_expr_a()
1040 dwarf_loclist_from_expr_b(Dwarf_Debug dbg, in dwarf_loclist_from_expr_b() argument
1065 res = _dwarf_what_section_are_we(dbg, in dwarf_loclist_from_expr_b()
1069 _dwarf_error(dbg, error,DW_DLE_POINTER_SECTION_UNKNOWN); in dwarf_loclist_from_expr_b()
1085 res = _dwarf_get_locdesc(dbg, &loc_block, in dwarf_loclist_from_expr_b()
1116 dwarf_get_loclist_entry(Dwarf_Debug dbg, in dwarf_get_loclist_entry() argument
1132 if (!dbg->de_debug_loc.dss_data) { in dwarf_get_loclist_entry()
1133 int secload = _dwarf_load_section(dbg, &dbg->de_debug_loc,error); in dwarf_get_loclist_entry()
1141 address_size = dbg->de_pointer_size; in dwarf_get_loclist_entry()
1142 res = _dwarf_read_loc_section(dbg, in dwarf_get_loclist_entry()
1159 _dwarf_loc_block_sanity_check(Dwarf_Debug dbg, in _dwarf_loc_block_sanity_check() argument
1170 end_ptr = dbg->de_debug_loc.dss_size + in _dwarf_loc_block_sanity_check()
1171 dbg->de_debug_loc.dss_data; in _dwarf_loc_block_sanity_check()
1179 _dwarf_error_string(dbg,error, in _dwarf_loc_block_sanity_check()
1194 end_ptr = dbg->de_debug_loclists.dss_size + in _dwarf_loc_block_sanity_check()
1195 dbg->de_debug_loclists.dss_data; in _dwarf_loc_block_sanity_check()
1204 _dwarf_error_string(dbg,error, in _dwarf_loc_block_sanity_check()
1222 _dwarf_fill_in_locdesc_op_c(Dwarf_Debug dbg, in _dwarf_fill_in_locdesc_op_c() argument
1264 res = _dwarf_what_section_are_we(dbg, in _dwarf_fill_in_locdesc_op_c()
1268 _dwarf_error(dbg, error,DW_DLE_POINTER_SECTION_UNKNOWN); in _dwarf_fill_in_locdesc_op_c()
1271 res = _dwarf_loc_block_sanity_check(dbg,loc_block,error); in _dwarf_fill_in_locdesc_op_c()
1282 res = _dwarf_read_loc_expr_op(dbg,loc_block, in _dwarf_fill_in_locdesc_op_c()
1302 (Dwarf_Loc_Chain) _dwarf_get_alloc(dbg, DW_DLA_LOC_CHAIN, 1); in _dwarf_fill_in_locdesc_op_c()
1304 _dwarf_free_op_chain(dbg,head_loc); in _dwarf_fill_in_locdesc_op_c()
1305 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_fill_in_locdesc_op_c()
1328 (Dwarf_Loc_Expr_Op ) _dwarf_get_alloc(dbg, DW_DLA_LOC_BLOCK_C, in _dwarf_fill_in_locdesc_op_c()
1332 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_fill_in_locdesc_op_c()
1336 dwarf_dealloc(dbg, prev_loc, DW_DLA_LOC_CHAIN); in _dwarf_fill_in_locdesc_op_c()
1356 dwarf_dealloc(dbg, prev_loc, DW_DLA_LOC_CHAIN); in _dwarf_fill_in_locdesc_op_c()
1390 _dwarf_read_loc_section_dwo(Dwarf_Debug dbg, in _dwarf_read_loc_section_dwo() argument
1401 Dwarf_Small *beg = dbg->de_debug_loc.dss_data + sec_offset; in _dwarf_read_loc_section_dwo()
1405 Dwarf_Byte_Ptr section_end = dbg->de_debug_loc.dss_data in _dwarf_read_loc_section_dwo()
1406 + dbg->de_debug_loc.dss_size; in _dwarf_read_loc_section_dwo()
1408 if (sec_offset >= dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section_dwo()
1432 dbg,error,section_end); in _dwarf_read_loc_section_dwo()
1447 dbg,error,section_end); in _dwarf_read_loc_section_dwo()
1452 dbg,error,section_end); in _dwarf_read_loc_section_dwo()
1458 READ_UNALIGNED_CK(dbg, exprlen, Dwarf_Unsigned, locptr, in _dwarf_read_loc_section_dwo()
1469 if (expr_offset > dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section_dwo()
1484 dbg,error,section_end); in _dwarf_read_loc_section_dwo()
1487 READ_UNALIGNED_CK(dbg, range_length, Dwarf_Unsigned, locptr, in _dwarf_read_loc_section_dwo()
1493 READ_UNALIGNED_CK(dbg, exprlen, Dwarf_Unsigned, locptr, in _dwarf_read_loc_section_dwo()
1507 if (expr_offset > dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section_dwo()
1518 READ_UNALIGNED_CK(dbg, startoffset, in _dwarf_read_loc_section_dwo()
1525 READ_UNALIGNED_CK(dbg, endoffset, in _dwarf_read_loc_section_dwo()
1534 READ_UNALIGNED_CK(dbg, exprlen, Dwarf_Unsigned, locptr, in _dwarf_read_loc_section_dwo()
1545 if (expr_offset > dbg->de_debug_loc.dss_size) { in _dwarf_read_loc_section_dwo()
1552 _dwarf_error(dbg,error,DW_DLE_LLE_CODE_UNKNOWN); in _dwarf_read_loc_section_dwo()
1570 _dwarf_original_loclist_build(Dwarf_Debug dbg, in _dwarf_original_loclist_build() argument
1586 off_res = _dwarf_get_loclist_header_start(dbg, in _dwarf_original_loclist_build()
1599 count_res = _dwarf_get_loclist_lle_count_dwo(dbg, in _dwarf_original_loclist_build()
1606 count_res = _dwarf_get_loclist_lle_count(dbg, in _dwarf_original_loclist_build()
1621 _dwarf_get_alloc(dbg, DW_DLA_LOCDESC_C, listlen); in _dwarf_original_loclist_build()
1623 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_original_loclist_build()
1643 blkres = _dwarf_read_loc_section_dwo(dbg, in _dwarf_original_loclist_build()
1652 blkres = _dwarf_read_loc_section(dbg, in _dwarf_original_loclist_build()
1665 lres = _dwarf_fill_in_locdesc_op_c(dbg, in _dwarf_original_loclist_build()
1687 _dwarf_original_expression_build(Dwarf_Debug dbg, in _dwarf_original_expression_build() argument
1713 (char *)dbg->de_debug_info.dss_data; in _dwarf_original_expression_build()
1719 blkres = _dwarf_formblock_internal(dbg,attr, in _dwarf_original_expression_build()
1739 _dwarf_get_alloc(dbg, DW_DLA_LOCDESC_C, listlen); in _dwarf_original_expression_build()
1741 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in _dwarf_original_expression_build()
1756 blkres = _dwarf_fill_in_locdesc_op_c(dbg, in _dwarf_original_expression_build()
1777 cook_original_loclist_contents(Dwarf_Debug dbg, in cook_original_loclist_contents() argument
1813 _dwarf_error_string(dbg,error, in cook_original_loclist_contents()
1825 cook_gnu_loclist_contents(Dwarf_Debug dbg, in cook_gnu_loclist_contents() argument
1842 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_gnu_loclist_contents()
1849 dwarf_dealloc_error(dbg, *error); in cook_gnu_loclist_contents()
1864 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_gnu_loclist_contents()
1870 dwarf_dealloc_error(dbg, *error); in cook_gnu_loclist_contents()
1886 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_gnu_loclist_contents()
1892 dwarf_dealloc_error(dbg, *error); in cook_gnu_loclist_contents()
1898 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_gnu_loclist_contents()
1904 dwarf_dealloc_error(dbg, *error); in cook_gnu_loclist_contents()
1922 _dwarf_error_string(dbg,error, in cook_gnu_loclist_contents()
1938 cook_loclists_contents(Dwarf_Debug dbg, in cook_loclists_contents() argument
1955 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_loclists_contents()
1961 dwarf_dealloc_error(dbg, *error); in cook_loclists_contents()
1972 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_loclists_contents()
1978 dwarf_dealloc_error(dbg, *error); in cook_loclists_contents()
1984 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_loclists_contents()
1990 dwarf_dealloc_error(dbg, *error); in cook_loclists_contents()
2001 res = _dwarf_extract_address_from_debug_addr(dbg, in cook_loclists_contents()
2007 dwarf_dealloc_error(dbg, *error); in cook_loclists_contents()
2055 _dwarf_error_string(dbg,error, in cook_loclists_contents()
2076 Dwarf_Debug dbg; in dwarf_get_loclist_c() local
2089 setup_res = _dwarf_setup_loc(attr, &dbg,&cucontext, &form, error); in dwarf_get_loclist_c()
2122 _dwarf_error_string(dbg,error,DW_DLE_LOC_EXPR_BAD, in dwarf_get_loclist_c()
2130 _dwarf_get_alloc(dbg, DW_DLA_LOC_HEAD_C, 1); in dwarf_get_loclist_c()
2132 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in dwarf_get_loclist_c()
2139 llhead->ll_dbg = dbg; in dwarf_get_loclist_c()
2161 ores = _dwarf_original_loclist_build(dbg, in dwarf_get_loclist_c()
2168 ores = cook_original_loclist_contents(dbg,llhead,error); in dwarf_get_loclist_c()
2170 ores = cook_gnu_loclist_contents(dbg,llhead,error); in dwarf_get_loclist_c()
2179 eres = _dwarf_original_expression_build(dbg, in dwarf_get_loclist_c()
2189 leres = _dwarf_loclists_fill_in_lle_head(dbg, in dwarf_get_loclist_c()
2195 leres = cook_loclists_contents(dbg,llhead,error); in dwarf_get_loclist_c()
2209 dwarf_loclist_from_expr_c(Dwarf_Debug dbg, in dwarf_loclist_from_expr_c() argument
2229 llhead = (Dwarf_Loc_Head_c)_dwarf_get_alloc(dbg, in dwarf_loclist_from_expr_c()
2232 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in dwarf_loclist_from_expr_c()
2242 _dwarf_get_alloc(dbg, DW_DLA_LOCDESC_C, local_listlen); in dwarf_loclist_from_expr_c()
2245 _dwarf_error(dbg, error, DW_DLE_ALLOC_FAIL); in dwarf_loclist_from_expr_c()
2251 llhead->ll_dbg = dbg; in dwarf_loclist_from_expr_c()
2264 res = _dwarf_fill_in_locdesc_op_c(dbg, in dwarf_loclist_from_expr_c()
2307 Dwarf_Debug dbg; in dwarf_get_locdesc_entry_d() local
2311 dbg = loclist_head->ll_dbg; in dwarf_get_locdesc_entry_d()
2313 _dwarf_error(dbg, error, DW_DLE_LOCLIST_INDEX_ERROR); in dwarf_get_locdesc_entry_d()
2382 Dwarf_Debug dbg = locdesc->ld_loclist_head->ll_dbg; in dwarf_get_location_op_value_d() local
2383 _dwarf_error(dbg, error, DW_DLE_LOCLIST_INDEX_ERROR); in dwarf_get_location_op_value_d()
2426 Dwarf_Debug dbg = loclist_head->ll_dbg; in dwarf_loc_head_c_dealloc() local
2428 dwarf_dealloc(dbg,loclist_head,DW_DLA_LOC_HEAD_C); in dwarf_loc_head_c_dealloc()