| 1 |
2013-12-26 David Anderson |
| 2 |
* pro_section.c, pro_types.c, pro_vars.c, pro_weaks.c, pro_forms.c, |
| 3 |
pro_frame.c,pro_funcs.c,pro_init.c,pro_line.c,pro_macinfo.c, |
| 4 |
pro_pubnames.c,pro_reloc.c,pro_reloc_stream.c,pro_reloc_symbolic.c, |
| 5 |
pro_expr.h,pro_macinfo.h,pro_reloc.h,pro_reloc_stream.h, |
| 6 |
pro_reloc_symbolic.h,pro_section.h,pro_types.h,pro_util.h: |
| 7 |
Remove trailing whitespace from the code. |
| 8 |
2013-11-24 David Anderson |
| 9 |
* pro_expr.c(dwarf_add_expr_gen): Moved use of a pointer |
| 10 |
to be after where the pointer tested for NULL. |
| 11 |
* pro_forms.c(local_add_AT_address): Moved use of a pointer |
| 12 |
to be after where the pointer tested for NULL. |
| 13 |
Both bugs found by the STACK code analysis tool from MIT. |
| 14 |
2013-10-31 David Anderson |
| 15 |
* dwarf_error.c: Added DW_DLE_AT_FIXUP_NULL and |
| 16 |
DW_DLE_AT_FIXUP_DUP. |
| 17 |
* libdwarf.h.in: Added those two defines plus dwarf_add_AT_reference_b() |
| 18 |
and dwarf_fixup_AT_reference_die() for CLASS REFERENCE attribute |
| 19 |
handling. Also, dwarf_add_AT_with_ref_sig8() for refsig8 |
| 20 |
references. |
| 21 |
* libdwarf2p.1.mm: version 1.34 20 October. Document new interfaces. |
| 22 |
Fixed typo in dwarf_add_AT_targ_address_b() documentation. |
| 23 |
* libdwarf2p.1.pdf: Regenerated. |
| 24 |
* pro_die.c. Added commentary. |
| 25 |
* pro_forms.c: Added reference support with dwarf_add_AT_reference_b() |
| 26 |
and refactoring to avoid duplicating code. |
| 27 |
Added dwarf_add_AT_with_ref_sig8() |
| 28 |
* pro_section.c: now only adds DW_AT_sibling automatically |
| 29 |
if it was not present already. Still only adds it |
| 30 |
in the same automatically-selected places. |
| 31 |
Some renaming of local variables for clarity around line 1743. |
| 32 |
One line reformatted, it was looking very odd, line 2217. |
| 33 |
2013-10-17 David Anderson |
| 34 |
* dwarf_error.c: Add DW_DLE_DEBUGPUBTYPES_ERROR string. |
| 35 |
* libdwarf.h.in: Add DW_DLE_DEBUGPUBTYPES_ERROR and fix |
| 36 |
DW_DLE_LAST. Add dwarf_add_pubtype() interface. |
| 37 |
* libdwarf2.1.mm: References to Dwarf_Pubtype changed |
| 38 |
to Dwarf_Type, using the same interface type |
| 39 |
as for .debug_types (an SGI extension). Now at rev 2.15. |
| 40 |
Clarified that pubnames and pubtypes only apply to |
| 41 |
.debug_info. |
| 42 |
* libdwarf2.1.pdf: Regenerated. |
| 43 |
* pro_opaque.h: Added DEBUG_PUBTYPES and updated |
| 44 |
NUM_DEBUG_SECTIONS. |
| 45 |
* pro_pubnames.c: Added dwarf_add_pubtype() support. |
| 46 |
* pro_section.c: Added support for pubtypes. |
| 47 |
2013-10-14 David Anderson |
| 48 |
* libdwarf.h.in: Dwarf_Callback_Func_c, |
| 49 |
Dwarf_Callback_Func_b and Dwarf_Callback_Func name argument |
| 50 |
was lacking a const qualifier leading to compiler warnings. |
| 51 |
Now has const qualifier. |
| 52 |
2013-08-15 David Anderson |
| 53 |
* dwarf_alloc.c: Now uses dwarf_printf instead of printf. |
| 54 |
And frees the dwarf_printf dp_buffer if appropriate. |
| 55 |
* dwarf_line.c, dwarf_print_lines.c: Now use dwarf_printf |
| 56 |
instead of printf. |
| 57 |
* dwarf_line.c: Update copyright year. |
| 58 |
* dwarf_opaque.h: Add de_printf_callback to Dwarf_Debug struct. |
| 59 |
Add dwarf_printf to function prototypes. |
| 60 |
* dwarf_util.c: Implement dwarf_printf. |
| 61 |
* libdwarf.h.in: Now specifies struct Dwarf_Printf_Callback_Info_s and |
| 62 |
dwarf_register_printf_callback(); |
| 63 |
* libdwarf2.1.mm: Version 2.14. Fixed three tables with too-long lines. |
| 64 |
Documented the new printf callback registration functions. |
| 65 |
* libdwarf2.1.pdf: Regenerated. |
| 66 |
2013-08-13 David Anderson |
| 67 |
* dwarf_init_finish.c: |
| 68 |
* dwarf_query.c: Added dwarf_highpc_b() so consumers can deal |
| 69 |
with DW_AT_high_pc with form constant (a feature of DWARF4). |
| 70 |
* libdwarf.h.in: Added dwarf_highpc_b(), |
| 71 |
dwarf_add_AT_any_value_sleb(), dwarf_add_AT_any_value_uleb(). |
| 72 |
to give producers more flexibility. |
| 73 |
Moved the Dwarf_Form_Class declaration closer to the |
| 74 |
head of the file so the new function prototypes can reference it. |
| 75 |
* libdwarf2.1.mm: Version 2.13. Added dwarf_highpc_b(). |
| 76 |
* libdwarf2.1.pdf: Regenerated. |
| 77 |
* libdwarf2p.1.mm: Version 1.33. Documents |
| 78 |
dwarf_add_AT_any_value_sleb() and |
| 79 |
dwarf_add_AT_any_value_uleb(). |
| 80 |
Fixes a one-character typo that was truncating the document severely. |
| 81 |
* libdwarf2p.1.pdf: Regenerated. |
| 82 |
* pro_forms.c: Implements dwarf_add_AT_any_value_sleb() and |
| 83 |
dwarf_add_AT_any_value_uleb(). |
| 84 |
2013-08-09 David Anderson |
| 85 |
* dwarf_init_finish.c: Spelling, change _dwarf_assume_string_bad-> |
| 86 |
_dwarf_assume_string_in_bound to reflect the actual meaning. |
| 87 |
* dwarf_alloc.c: Change a debug message for DWARF_SIMPLE_MALLOC |
| 88 |
to write to stdout, not stderr. All non-fatal messages now |
| 89 |
print to stdout. |
| 90 |
* libdwarf2.1.mm: Now version 2.12. Corrected the |
| 91 |
description of dwarf_set_stringcheck(). |
| 92 |
* libdwarf2.1.pdf: Regenerated. |
| 93 |
2013-08-08 David Anderson |
| 94 |
* dwarf_form.c: When a FORM_string attribute is in |
| 95 |
debug_types it is now correctly dealt with. |
| 96 |
2013-08-07 David Anderson |
| 97 |
* dwarf_init_finish.c: Changed a nonfatal error to |
| 98 |
write it to stdout instead of stderr to make it easier |
| 99 |
to understand the context of the error (which involves |
| 100 |
the number of debug sections, not something anyone |
| 101 |
should ever see). |
| 102 |
2013-07-28 David Anderson |
| 103 |
* dwarf_abbrev.c, dwarf_frame.c, dwarf_frame3.c,dwarf_line.c, |
| 104 |
pro_reloc_stream.c, pro_section.c: |
| 105 |
Rename local variables to avoid |
| 106 |
compiler warnings about local variables reusing |
| 107 |
outer scope (including global) names. |
| 108 |
* dwarf_elf_access.c: Add AARCH64 support. |
| 109 |
* dwarf_reloc_arm.h: Add AARCH64 support. |
| 110 |
* libdwarf2.1.mm: dwarf_highpc() documentation admits |
| 111 |
it does not work properly for DWARF4 in all cases. |
| 112 |
dwarf_highpc() needs to be fixed. |
| 113 |
* libdwarf2.1.pdf: Regenerated |
| 114 |
2013-06-08 David Anderson |
| 115 |
* libdwarf2.1.mm: Improved the documentation of |
| 116 |
dwarf_highpc() function to suggest how to interpret |
| 117 |
the value (pc or offset). |
| 118 |
* libdwarf2.1.pdf: Regenerated. |
| 119 |
2013-03-08 David Anderson |
| 120 |
* dwarf_elf_access.c: Now we handle K10M and L10M |
| 121 |
as having relocations named as in x86, x86_64. |
| 122 |
2013-02-07 David Anderson |
| 123 |
* dwarf_elf_access.c: FreeBSD did not have R_PPC64_ADDR32 |
| 124 |
as a relocation name, so changed one name to be the name |
| 125 |
usable in Ubuntu and FreeBSD, R_PPC_ADDR32. |
| 126 |
2013-02-01 David Anderson |
| 127 |
* libdwarf2.1.mm: Improved the documentation of the |
| 128 |
badly-named functions dwarf_whatform() and |
| 129 |
dwarf_whatform_direct(). |
| 130 |
* libdwarf2.1.pdf: Regenerated. |
| 131 |
* libdwarf.h.in: The arguments to dwarf_whatform[_direct]() |
| 132 |
are renamed for clarity. They are commented out, so |
| 133 |
this is just improving documentation. |
| 134 |
2013-01-20 David Anderson |
| 135 |
* libdwarf.h: Removed. |
| 136 |
* libdwarf.h.in: Added. Identical content to standard libdwarf. |
| 137 |
* configure.in: Generates libdwarf.h. |
| 138 |
Notices if struct _Elf in libelf.h and generates libdwarf.h |
| 139 |
appropriately. |
| 140 |
* configure: Regenerated |
| 141 |
* README now mentions the libdwarf.h generation at configure time. |
| 142 |
2013-01-28 David Anderson |
| 143 |
* dwarf_frame.c: Fix a macro so it does not test unsigned |
| 144 |
numbers as being less than zero. Fixes a compiler warning. |
| 145 |
* malloc_check.c: Add void as the parameter list of a |
| 146 |
parameter-less function. Fixes a compiler warning. |
| 147 |
2013-01-26 David Anderson |
| 148 |
* libdwarf.h: Remove the lc_number3 field to restore |
| 149 |
interface binary compatibility with earlier releases. |
| 150 |
* dwarf_loc.c, dwarf_loc.h: No longer uses the removed |
| 151 |
lc_number3 or lr_number3 fields. |
| 152 |
2013-01-25 David Anderson |
| 153 |
* dwarf_alloc.c: Changed some local names to avoid |
| 154 |
compiler warnings about redefining names in inner contexts. |
| 155 |
* dwarf_frame2.c: Changed some local names to avoid |
| 156 |
compiler warnings about redefining names in inner contexts. |
| 157 |
Added const to some declarations to avoid warnings |
| 158 |
about const being cast away. |
| 159 |
* dwarf_init_finish.c: Added const to some declarations |
| 160 |
to avoid warnings about const being cast away. |
| 161 |
Changed some local names to avoid |
| 162 |
compiler warnings about redefining names in inner contexts. |
| 163 |
* dwarf_line.c, dwarf_print_lines.c: Added const to some declarations |
| 164 |
to avoid warnings about const being cast away. |
| 165 |
Added static to function definition to reflect its use |
| 166 |
and to avoid warning about lack of a visible prototype. |
| 167 |
* gennames.c: Using C89/90 void to declare functions with |
| 168 |
no arguments to avoid compiler warnings about using old style |
| 169 |
declarations. |
| 170 |
Changed some local names to avoid |
| 171 |
compiler warnings about redefining names in inner contexts. |
| 172 |
Added const to some declarations to avoid warnings |
| 173 |
about const being cast away. |
| 174 |
* pro_incl.h: WRITE_UNALIGNED macros now cast with const |
| 175 |
to avoid warnings about const being cast away. |
| 176 |
* pro_macinfo.c,pro_section.c,pro_section.h: Added const |
| 177 |
to some declarations to avoid warnings about const being cast away. |
| 178 |
2013-01-25 David Anderson |
| 179 |
* common.c: Add 'const' on string declarations to avoid |
| 180 |
compiler warnings. |
| 181 |
* dwarf_loc.h: Add the new field lc_number3 to handle |
| 182 |
DW_OP_GNU_const_type properly. |
| 183 |
* dwarf_loc.c: Handle DW_OP_GNU_const_type properly. |
| 184 |
* libdwarf.h: Add lr_number3 so we can handle DW_OP_GNU_const_type |
| 185 |
properly. This destroys binary compatibility. Not a good idea. |
| 186 |
See Jan 26, above. |
| 187 |
2013-01-25 David Anderson |
| 188 |
* dwarf_loc.c: Use cc_length_size, not cc_length to get |
| 189 |
the offset size. Nasty bug. |
| 190 |
* dwarf_opaque.h: Change commentary to clarify the cc_length |
| 191 |
field content to hopefully avoid making that mistake again. |
| 192 |
2013-01-15 David Anderson |
| 193 |
* dwarf.h: defines for some added DW_OP_GNU operators |
| 194 |
* dwarf_loc.c: Added support for some DW_OP_GNU operators. |
| 195 |
* config.h.in, configure.in: Define and set HAVE_STRUCT_UNDERSCORE_ELF |
| 196 |
as FreeBSD names struct _Elf instead of struct Elf. |
| 197 |
* configure: Regenerated. |
| 198 |
* dwarf_alloc.c: Initialize a local var at declaration, add const |
| 199 |
to array of strings type declaration. |
| 200 |
* dwarf_alloc.h: Change ah_structs_per_chunk to Dwarf_Sword |
| 201 |
to eliminate a compiler warning. |
| 202 |
* dwarf_arange.c: Change a couple Dwarf_Unsigned to Dwarf_Signed |
| 203 |
to eliminate a compiler warning. |
| 204 |
* dwarf_die_deliv.c: Change local to Dwarf_Unsigned to eliminate |
| 205 |
signed compare warning (and actually signed was wrong anyway!). |
| 206 |
* dwarf_error.c: Fix comparison to eliminate signed/unsigned |
| 207 |
compare warning. |
| 208 |
* dwarf_form.c: Index variable changed to unsigned to |
| 209 |
eliminate signed/unsigned comparison warning. |
| 210 |
* dwarf_frame.c: Local variables changed to unsigned to |
| 211 |
eliminate signed/unsigned comparison warnings. |
| 212 |
* dwarf_frame3.c: Local variables changed to unsigned to |
| 213 |
eliminate signed/unsigned comparison warnings. |
| 214 |
* dwarf_init_finish.c: Local variable changed to unsigned to |
| 215 |
eliminate signed/unsigned comparison warning. |
| 216 |
* dwarf_leb.c: Local variable changed to unsigned to |
| 217 |
eliminate signed/unsigned comparison warning. |
| 218 |
* dwarf_line.c: Changed index variable to unsigned to |
| 219 |
eliminate signed/unsigned comparison warning. |
| 220 |
* dwarf_loc.c: Delete two unused local variables. |
| 221 |
* dwarf_loc.c: Delete two unused local variables. |
| 222 |
* dwarf_macro.c: Fixed comparisons |
| 223 |
eliminate signed/unsigned comparison warning. |
| 224 |
* dwarf_opaque.h: Changed cc_abbrev_offset and de_fde_count |
| 225 |
to unsigned (which they should have been all along) to |
| 226 |
eliminate signed/unsigned comparison warnings. |
| 227 |
* dwarf_print_lines.c: Local variable changed to unsigned to |
| 228 |
eliminate signed/unsigned comparison warning. |
| 229 |
* dwarf_util.c: Add include of pro_encode_nm.h to avoid |
| 230 |
a compiler warning. Changed index variable to unsigned to |
| 231 |
eliminate signed/unsigned comparison warning. |
| 232 |
* libdwarf.h: Add ability to handle struct _Elf. |
| 233 |
* pro_alloc.c: Move an include of malloc.h as it is |
| 234 |
not needed if stdlib.h is present. |
| 235 |
* pro_forms.c: Changed index variable to unsigned to |
| 236 |
eliminate signed/unsigned comparison warning. |
| 237 |
* pro_util.h: Add specific allowance for FreeBSD include and |
| 238 |
relocation. |