#include "config.h"#include "dwarf_incl.h"#include <stdio.h>#include <limits.h>#include "dwarf_macro.h"

Go to the source code of this file.
Defines | |
| #define | LEFTPAREN '(' |
| #define | RIGHTPAREN ')' |
| #define | SPACE ' ' |
| #define | STARTERMAX 10 |
Functions/Subroutines | |
| char * | dwarf_find_macro_value_start (char *str) |
| static void | _dwarf_reset_index_stack (void) |
| static int | _dwarf_mac_push_index (Dwarf_Debug dbg, Dwarf_Signed indx) |
| static Dwarf_Signed | _dwarf_mac_pop_index (void) |
| int | dwarf_get_macro_details (Dwarf_Debug dbg, Dwarf_Off macro_offset, Dwarf_Unsigned maximum_count, Dwarf_Signed *entry_count, Dwarf_Macro_Details **details, Dwarf_Error *error) |
Variables | |
| static Dwarf_Signed * | st_base |
| static long | max |
| static long | next_to_use |
| static int | was_fault = 0 |
| #define LEFTPAREN '(' |
| #define RIGHTPAREN ')' |
| #define SPACE ' ' |
Definition at line 51 of file dwarf_macro.c.
| #define STARTERMAX 10 |
| static Dwarf_Signed _dwarf_mac_pop_index | ( | void | ) | [static] |
Definition at line 140 of file dwarf_macro.c.
References next_to_use, st_base, and was_fault.
Referenced by dwarf_get_macro_details().
| static int _dwarf_mac_push_index | ( | Dwarf_Debug | dbg, | |
| Dwarf_Signed | indx | |||
| ) | [static] |
Definition at line 111 of file dwarf_macro.c.
References _dwarf_get_alloc(), DW_DLA_STRING, DW_DLV_ERROR, DW_DLV_OK, dwarf_dealloc(), max, memcpy, next_to_use, st_base, STARTERMAX, and was_fault.
Referenced by dwarf_get_macro_details().
Definition at line 105 of file dwarf_macro.c.
References next_to_use, and was_fault.
Referenced by dwarf_get_macro_details().
| char* dwarf_find_macro_value_start | ( | char * | str | ) |
| int dwarf_get_macro_details | ( | Dwarf_Debug | dbg, | |
| Dwarf_Off | macro_offset, | |||
| Dwarf_Unsigned | maximum_count, | |||
| Dwarf_Signed * | entry_count, | |||
| Dwarf_Macro_Details ** | details, | |||
| Dwarf_Error * | error | |||
| ) |
Definition at line 160 of file dwarf_macro.c.
References _dwarf_decode_u_leb128(), _dwarf_error(), _dwarf_get_alloc(), _dwarf_load_section(), _dwarf_mac_pop_index(), _dwarf_mac_push_index(), _dwarf_reset_index_stack(), count, Dwarf_Debug_s::de_debug_macinfo, Dwarf_Debug_s::de_debug_macinfo_index, Dwarf_Debug_s::de_debug_macinfo_size, Dwarf_Macro_Details_s::dmd_fileindex, Dwarf_Macro_Details_s::dmd_lineno, Dwarf_Macro_Details_s::dmd_macro, Dwarf_Macro_Details_s::dmd_offset, Dwarf_Macro_Details_s::dmd_type, DW_DLA_STRING, DW_DLE_DBG_NULL, DW_DLE_DEBUG_MACRO_INCONSISTENT, DW_DLE_DEBUG_MACRO_INTERNAL_ERR, DW_DLE_DEBUG_MACRO_LENGTH_BAD, DW_DLE_DEBUG_MACRO_MALLOC_SPACE, DW_DLV_ERROR, DW_DLV_NO_ENTRY, DW_DLV_OK, DW_MACINFO_define, DW_MACINFO_end_file, DW_MACINFO_start_file, DW_MACINFO_undef, DW_MACINFO_vendor_ext, len, long, max_count, NULL, strcpy, strlen(), ULONG_MAX, and void.
Referenced by print_macinfo().
Definition at line 99 of file dwarf_macro.c.
long next_to_use [static] |
Definition at line 100 of file dwarf_macro.c.
Referenced by _dwarf_mac_pop_index(), _dwarf_mac_push_index(), and _dwarf_reset_index_stack().
Dwarf_Signed* st_base [static] |
Definition at line 98 of file dwarf_macro.c.
Referenced by _dwarf_mac_pop_index(), _dwarf_mac_push_index(), Initialize_Stack_Frame(), and New_Gather_References().
int was_fault = 0 [static] |
Definition at line 101 of file dwarf_macro.c.
Referenced by _dwarf_mac_pop_index(), _dwarf_mac_push_index(), and _dwarf_reset_index_stack().
1.5.6