| 1 |
/* |
| 2 |
Copyright (C) 2000,2004,2005 Silicon Graphics, Inc. All Rights Reserved. |
| 3 |
Portions Copyright (C) 2007-2020 David Anderson. All Rights Reserved. |
| 4 |
Portions Copyright 2012-2018 SN Systems Ltd. All rights reserved. |
| 5 |
|
| 6 |
This program is free software; you can redistribute it and/or |
| 7 |
modify it under the terms of version 2 of the GNU General |
| 8 |
Public License as published by the Free Software Foundation. |
| 9 |
|
| 10 |
This program is distributed in the hope that it would be |
| 11 |
useful, but WITHOUT ANY WARRANTY; without even the implied |
| 12 |
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
| 13 |
PURPOSE. |
| 14 |
|
| 15 |
Further, this software is distributed without any warranty |
| 16 |
that it is free of the rightful claim of any third person |
| 17 |
regarding infringement or the like. Any license provided |
| 18 |
herein, whether implied or otherwise, applies only to this |
| 19 |
software file. Patent licenses, if any, provided herein |
| 20 |
do not apply to combinations of this program with other |
| 21 |
software, or any other product whatsoever. |
| 22 |
|
| 23 |
You should have received a copy of the GNU General Public |
| 24 |
License along with this program; if not, write the Free |
| 25 |
Software Foundation, Inc., 51 Franklin Street - Fifth Floor, |
| 26 |
Boston MA 02110-1301, USA. |
| 27 |
*/ |
| 28 |
|
| 29 |
#ifndef ESB_USING_FUNCTIONS_H |
| 30 |
#define ESB_USING_FUNCTIONS_H |
| 31 |
#ifdef __cplusplus |
| 32 |
extern "C" { |
| 33 |
#endif |
| 34 |
|
| 35 |
/* Always returns DW_DLV_OK */ |
| 36 |
int print_ranges_list_to_extra(Dwarf_Debug dbg, |
| 37 |
Dwarf_Die die, |
| 38 |
Dwarf_Unsigned originaloff, |
| 39 |
Dwarf_Unsigned finaloff, |
| 40 |
Dwarf_Ranges *rangeset, |
| 41 |
Dwarf_Signed rangecount, |
| 42 |
Dwarf_Unsigned bytecount, |
| 43 |
struct esb_s *stringbuf); |
| 44 |
|
| 45 |
int get_producer_name(Dwarf_Debug dbg,Dwarf_Die cu_die, |
| 46 |
Dwarf_Off dieprint_cu_offset, |
| 47 |
struct esb_s *producername,Dwarf_Error *err); |
| 48 |
|
| 49 |
int get_attr_value(Dwarf_Debug dbg, Dwarf_Half tag, |
| 50 |
Dwarf_Die die, |
| 51 |
Dwarf_Off die_cu_offset, |
| 52 |
Dwarf_Attribute attrib, |
| 53 |
char **srcfiles, Dwarf_Signed srcfiles_count, |
| 54 |
struct esb_s *esbp, |
| 55 |
int show_form,int local_verbose, |
| 56 |
Dwarf_Error *err); |
| 57 |
|
| 58 |
void format_sig8_string(Dwarf_Sig8 *data,struct esb_s *out); |
| 59 |
|
| 60 |
int dwarfdump_print_expression_operations(Dwarf_Debug dbg, |
| 61 |
Dwarf_Die die, |
| 62 |
int die_indent_level, |
| 63 |
Dwarf_Locdesc_c locs, /* 2015 interface */ |
| 64 |
Dwarf_Unsigned entrycount, /* count of DW_OP operators */ |
| 65 |
struct esb_s *string_out, |
| 66 |
Dwarf_Error *err); |
| 67 |
|
| 68 |
int get_true_section_name(Dwarf_Debug dbg, |
| 69 |
const char *standard_name, |
| 70 |
struct esb_s *name_out, |
| 71 |
Dwarf_Bool add_compr); |
| 72 |
|
| 73 |
#ifdef __cplusplus |
| 74 |
} |
| 75 |
#endif |
| 76 |
#endif /* ESi_USING_FUNCTIONS_H */ |