| 1 |
2009-12-30 DavidAnderson <[email protected]> |
| 2 |
* configure: Regenerated with autoconf 2.64. |
| 3 |
* config.guess, config.sub: Delete these. |
| 4 |
* configure.in, README: The --enable-nonshared |
| 5 |
option was coded incorrectly. The configure |
| 6 |
options are --enable-shared and --disable-nonshared |
| 7 |
work correctly. Options --disable-shared and --enable-nonshared work |
| 8 |
correctly as well (these are the default values). |
| 9 |
2009-12-29 DavidAnderson <[email protected]> |
| 10 |
* gennames.c: Add cast to int in printf so that the printf with * |
| 11 |
as the field width sees an int, not size_t. |
| 12 |
* Makefile.in: Add depenencies for libdwarf.so to match |
| 13 |
libdwarf.a |
| 14 |
2009-12-26 DavidAnderson <[email protected]> |
| 15 |
* libdwarf.h, pro_section.c, pro_reloc_symbolic.c: Reformatted |
| 16 |
a few lines that were badly formatted. |
| 17 |
Initialized local variables where a few were not initialized |
| 18 |
(this did not affect correctness, just readability). |
| 19 |
2009-11-27 DavidAnderson <[email protected]> |
| 20 |
* dwarf_form.c: Was an incorrect implemenation of |
| 21 |
the reading of DW_FORM_sec_offset. |
| 22 |
* libdwarf2.1.mm: Improved the documentation on reading DW_FORM_sec_offset. |
| 23 |
See dwarf_global_formref() documentation. |
| 24 |
* libdwarf2.1.pdf: Regenerate. |
| 25 |
2009-11-27 DavidAnderson <[email protected]> |
| 26 |
* libdwarf.h, dwarf_form.c, dwarf_query.c: Adding |
| 27 |
new form-class for the old DW_AT_MIPS_fde |
| 28 |
SGI/IRIX extension (offset into .debug_frame). |
| 29 |
2009-11-27 DavidAnderson <[email protected]> |
| 30 |
* libdwarf.h: Added dwarf_formexprloc() and a new |
| 31 |
error code for it. |
| 32 |
* dwarf_query.c: The new dwarf_get_form_class() |
| 33 |
function had a typo for the address class. |
| 34 |
* dwarf_form.c: dwarf_formexprloc() added so one can read |
| 35 |
DW_FORM_exprloc location expressions. |
| 36 |
* dwarf_error.c: New error added for dwarf_formexprloc(). |
| 37 |
* libdwarf2.1.mm: Document dwarf_formexprloc(). |
| 38 |
* libdwarf2.1.pdf: Regenerate. |
| 39 |
2009-11-27 DavidAnderson <[email protected]> |
| 40 |
* libdwarf.h: Defines typedef Dwarf_Sig8 and |
| 41 |
the new function dwarf_formsig8(). |
| 42 |
* dwarf_error.c: Now deals with the latest |
| 43 |
error codes, including a new one for dwarf_formsig8(). |
| 44 |
* libdwarf2.1.mm: Document dwarf_formsig8(). |
| 45 |
* libdwarf2.1.pdf: Regenerate. |
| 46 |
2009-11-24 DavidAnderson <[email protected]> |
| 47 |
* libdwarf.h: Added enum dwarf_form_class_e and |
| 48 |
dwarf_get_form_class() so clients have a simple |
| 49 |
way to get the form-class mentioned in the DWARF |
| 50 |
specification. |
| 51 |
* dwarf_query.c: Implemented dwarf_get_form_class(). |
| 52 |
* dwarf_die_deliv.c: Added dwarf_next_cu_header_b() |
| 53 |
function as more useful than dwarf_next_cu_header(). |
| 54 |
* dwarf_opaque.h: Added commentary about CU record. |
| 55 |
* dwarf_elf_access.c: Added commentary about the CU header |
| 56 |
data. |
| 57 |
* libdwarf2.1.mm: Document dwarf_next_cu_header_b() |
| 58 |
and suggest users convert to it. |
| 59 |
Document dwarf_get_form_class(). Rev 1.84 |
| 60 |
* libdwarf2.1.pdf: Regenerate. |
| 61 |
2009-11-23 DavidAnderson <[email protected]> |
| 62 |
* dwarf_line.c: file_name_is_full_path() did not |
| 63 |
allow for lower case in Windows root path |
| 64 |
detection (with --enable-windowspath at configure |
| 65 |
time). Now it does. |
| 66 |
2009-11-17 DavidAnderson <[email protected]> |
| 67 |
* gennames.c: Check the return value from fgets(). |
| 68 |
* dwarf_form.c, dwarf_util.c: Handle DW_FORM_sec_offset, new in DWARF4. |
| 69 |
* libdwarf2.1.mm: Add comment to macro example to clarify its |
| 70 |
limitation (it cannot always work). |
| 71 |
* libdwarf2.1.pdf: Regenerate. |
| 72 |
2009-09-30 DavidAnderson <[email protected]> |
| 73 |
* libdwarf.h: Added dwarf_insert_fde_inst_bytes() |
| 74 |
to simplify copying an fde. Added dwarf_get_cie_index() |
| 75 |
to provide a direct specific way to get a cie index for an fde. |
| 76 |
* libdwarf2.1.mm: Minor reformatting to make things easier to read. |
| 77 |
This is revision 1.82. Documented the new function |
| 78 |
dwarf_get_cie_index(). |
| 79 |
* libdwarf2.1.pdf: Regenerated. |
| 80 |
* dwarf.h: Corrected typo, DW_CFA_cfa_offset_extended_sf is |
| 81 |
really spelled DW_CFA_offset_extended_sf. |
| 82 |
Added final new attributes, tag, language. |
| 83 |
* pro_alloc.c: Reformatting a comment so the line is not so long. |
| 84 |
* libdwarf2p.1.mm: Clarified that some arguments in fde |
| 85 |
creation are MIPS/IRIX only (other targets should just pass 0). |
| 86 |
This is revision 1.27. Document the new function |
| 87 |
dwarf_insert_fde_inst_bytes(). |
| 88 |
* libdwarf2p.1.pdf: Regenerated. |
| 89 |
* config.h.in: Added HAVE_WINDOWS_PATH. |
| 90 |
* configure.in: Added --enable-windowspath to set |
| 91 |
HAVE_WINDOWS_PATH. |
| 92 |
* configure: Regenerated. |
| 93 |
* pro_section.c: Now allows use of a block of fde instructions |
| 94 |
from dwarf_insert_fde_inst_bytes(). Some indentation fixed too. |
| 95 |
* dwarf_line.c: Added detection of Windows full path if |
| 96 |
HAVE_WINDOWS_PATH defined at library build time. |
| 97 |
* pro_frame.c: Now handles dwarf3 CFA operations (but not the |
| 98 |
expression operands yet). Removed some duplicated code in |
| 99 |
a switch statement. Fixed commentary typos. |
| 100 |
Created new function dwarf_insert_fde_inst_bytes(). |
| 101 |
* pro_frame.h: Added fields to support dwarf_insert_fde_inst_bytes(). |
| 102 |
* dwarf_arange.c: dwarf_get_arange_cu_header_offset() was |
| 103 |
failing to load .debug_info, so a legitimate use of the function |
| 104 |
might crash a client. |
| 105 |
* dwarf_frame2.c: If there are CIE records but no FDEs this |
| 106 |
is not considered a 'NO ENTRY' case. It is strange |
| 107 |
but not a formal error and we might want to access the orphan |
| 108 |
CIE records (to print them when debugging a compiler, for example). |
| 109 |
* README: Documented --enable-windowspath. |
| 110 |
* dwarf_frame.c: Adding dwarf_get_cie_index() convenience function. |
| 111 |
2009-09-09 DavidAnderson <[email protected]> |
| 112 |
* libdwarf2p.1.mm: Improved the discussion of |
| 113 |
dwarf_transform_to_disk_form. |
| 114 |
* libdwarf2p.1.pdf: Regenerated. |
| 115 |
2009-08-12 DavidAnderson <[email protected]> |
| 116 |
* pro_section.c: The Dwarf_Die argument to fde creation |
| 117 |
functions is really optional (NULL is ok) and only used |
| 118 |
for an IRIX/MIPS extension. So the code now allows |
| 119 |
a NULL Dwarf_Die argument for these functions. |
| 120 |
* libdwarf2p.1.mm: Rev 1.24, 11 Aug 2009 now documents |
| 121 |
the argument as NULL for most users. |
| 122 |
* libdwarf2p.1.pdf: Regenerated Rev 1.24, 11 Aug 2009. |
| 123 |
2009-08-07 DavidAnderson <[email protected]> |
| 124 |
* libdwarf.h: Added to Dwarf_Regtable_Entry_s |
| 125 |
and Dwarf_Regtable_Entry_s comments. |
| 126 |
* libdwarf2.1.mm: Revised dwarf_set_frame_rule_table_size() |
| 127 |
description, making it a bit more complete. |
| 128 |
* libdwarf2.1.pdf: Regenerated, rev 1.81, 07 August 2009. |
| 129 |
2009-08-05 DavidAnderson <[email protected]> |
| 130 |
* libdwarf.h: Interface to dwarf_expand_frame_instructions() |
| 131 |
changed, the original could not really work right. |
| 132 |
* libdwarf2.1.mm: Documented revised dwarf_expand_frame_instructions(). |
| 133 |
* libdwarf2.1.pdf: Regenerated, rev 1.80, 05 August 2009. |
| 134 |
* dwarf_frame.c: Fixed dwarf_expand_frame_instructions(); |
| 135 |
2009-08-05 DavidAnderson <[email protected]> |
| 136 |
* gennames.c: Change include from getopt.h to unistd.h |
| 137 |
so the code is more universally compilable. |
| 138 |
2009-07-24 DavidAnderson <[email protected]> |
| 139 |
* dwarf_frame.c: Change debug printf to use libdwarf.h DW_PR macros |
| 140 |
instead of %d. |
| 141 |
2009-07-20 DavidAnderson <[email protected]> |
| 142 |
* libdwarf.h: Added DW_DLE_NO_ELF64_SUPPORT. |
| 143 |
* dwarf_elf_access.c: If one has no Elf64 libelf support at build time |
| 144 |
and runtime one finds an Elf64 object then we return |
| 145 |
an error (DW_DLE_NO_ELF64_SUPPORT). Pretending we could handle |
| 146 |
the elf64 was a bug. |
| 147 |
* dwarf_error.c: Adding strings for new error codes. |
| 148 |
* dwarf_elf_access.c: Add error code argument. |
| 149 |
* dwarf_elf_access.h: Add error code argument. |
| 150 |
* dwarf_original_elf_init.c: Report the correct error code instead |
| 151 |
of a generic code. |
| 152 |
|
| 153 |
2009-07-16 DavidAnderson <[email protected]> |
| 154 |
* libdwarf.h: Add an error message define relating to rela relocations. |
| 155 |
* dwarf_alloc.c: Add code to free malloc space (related |
| 156 |
to rela relocations). |
| 157 |
* config.h.in: Add ifdef for Sun host machines so rela processing |
| 158 |
does not segv. |
| 159 |
* dwarf_opaque.h: Add a flag to the section data to note that we malloced |
| 160 |
space when rela relocations are involved. |
| 161 |
* dwarf_elf_access.c: Refine is_32bit_abs_reloc() and |
| 162 |
is_64bit_abs_reloc() for easier debugging. |
| 163 |
Add malloc call when doing rela processing |
| 164 |
as some host libelf libraries make some libelf data areas read-only |
| 165 |
(Solaris and Irix for example). The malloc space avoids getting |
| 166 |
a segv. |
| 167 |
2009-07-13 DavidAnderson <[email protected]> |
| 168 |
* dwarf_elf_access.c: some cases had = where == was |
| 169 |
needed in the reloc switch code. |
| 170 |
2009-07-05 DavidAnderson <[email protected]> |
| 171 |
* dwarf_opaque.h: New data for .rela and unify section data |
| 172 |
information. The changes will require consumers supporting |
| 173 |
non-elf-objects to make small (hopefully simple) changes. |
| 174 |
* dwarf_init_finish.c: Note existence of .rela sections. |
| 175 |
* pro_forms.c: Explicitly allow DW_AT_const_value, |
| 176 |
DW_AT_entry_pc, DW_AT_call_file, DW_AT_call_line. |
| 177 |
* dwarf_ranges.c: Use simplified _dwarf_load_section() interface. |
| 178 |
Change an accidental C++ style // comment to oldstyle C comment. |
| 179 |
* dwarf_print_lines.c, dwarf_form.c, dwarf_query.c, |
| 180 |
dwarf_vars.c, dwarf_pubtypes.c, dwarf_frame3.c, dwarf_funcs.c, |
| 181 |
dwarf_arange.c, dwarf_global.c, dwarf_init_finish.c, |
| 182 |
dwarf_line.c, dwarf_opaque.h, dwarf_string.c, dwarf_weaks.c |
| 183 |
dwarf_util.c, dwarf_loc.c, dwarf_frame.c, dwarf_macro.c, |
| 184 |
dwarf_types.c: Use simplified _dwarf_load_section() interface. |
| 185 |
|
| 186 |
2009-07-05 DavidAnderson <[email protected]> |
| 187 |
* dwarf_init_finish.c: Unified some common code into |
| 188 |
a new local function , reducing file by 60 lines. |
| 189 |
* dwarf_init_finish.c: Has long checked the wrong field |
| 190 |
for duplicate debug_info and debug_abbrev. Fixed. |
| 191 |
Also noted SGI IRIX only sections by adding comments. |
| 192 |
2009-07-04 DavidAnderson <[email protected]> |
| 193 |
* libdwarf.h: Adding new function dwarf_CU_dieoffset_given_die(), |
| 194 |
and comments on dwarf_get_cu_die_offset_given_cu_header_offset(); |
| 195 |
* libdwarf2.1.mm: documenting dwarf_CU_dieoffset_given_die(). |
| 196 |
* libdwarf2.1.pdf: Regenerated. |
| 197 |
* dwarf_opaque.h: New structure Dwarf_Section_s consolidates |
| 198 |
section information into one struct per section with |
| 199 |
index and size so we remove many Dwarf_Debug_s fields. |
| 200 |
* dwarf_print_lines.c, dwarf_form.c, dwarf_query.c, dwarf_vars.c, |
| 201 |
dwarf_pubtypes.c, dwarf_frame3.c, dwarf_funcs.c, |
| 202 |
dwarf_alloc.c, dwarf_arange.c, dwarf_init_finish.c , |
| 203 |
dwarf_ranges.c, dwarf_line.c, dwarf_abbrev.c, dwarf_string.c, |
| 204 |
dwarf_weaks.c, dwarf_frame2.c, dwarf_util.c, dwarf_loc.c, |
| 205 |
dwarf_die_deliv.c, dwarf_frame.c, dwarf_macro.c, dwarf_types.c, |
| 206 |
Reflect Dwarf_Section_s addition using its fields. |
| 207 |
Simplify years list of SGI copyright using y-y replacing comma list. |
| 208 |
Minor reformatting for consistency with 4-space indentation. |
| 209 |
Initialize uninitialized local variables at declaration. |
| 210 |
* dwarf_addr_finder.c, dwarf_print_lines.c: Initialize 'res' |
| 211 |
local variables at declaration to DW_DLV_ERROR. |
| 212 |
* dwarf_global.c: Add dwarf_CU_dieoffset_given_die(). |
| 213 |
Reflect Dwarf_Section_s addition using its fields. |
| 214 |
Simplify years list of SGI copyright using y-y replacing comma list. |
| 215 |
Minor reformatting for consistency with 4-space indentation. |
| 216 |
Initialize uninitialized local variables at declaration. |
| 217 |
2009-06-06 DavidAnderson <[email protected]> |
| 218 |
* configure.in: The new option --enable_namestable |
| 219 |
switches build time to generate a runtime binary search |
| 220 |
in the dwarf_get_TAG_name() etc functions instead of the |
| 221 |
default switch statement (for the rare case one knows a |
| 222 |
compiler generates poor switch code). |
| 223 |
* configure: regenerated. |
| 224 |
* libdwarf.h: Correct format mistakes and omissions in |
| 225 |
the Dwarf_Regtable_Entry3_s comments. |
| 226 |
Add prototypes for dwarf_get_TAG_name() and the related |
| 227 |
new functions. |
| 228 |
* dwarf_frame.c: Add {} to clarify some 'if' ranges. |
| 229 |
Remove code updating the DW_FRAME_CFA_COL row when finishing |
| 230 |
up establishing the current frame table. The code should never |
| 231 |
have been there. Fixed some indentation of function |
| 232 |
formal parameters. Removed use of DW_FRAME_CFA_COL |
| 233 |
and use de_frame_cfa_col_number instead. |
| 234 |
In dwarf_get_fde_info_for_reg (the older interface) |
| 235 |
correctly return the cfa table column in the 'old style'. |
| 236 |
* gennames.c: Copied from dwarfdump.c (with changes). |
| 237 |
This generates dwarf_names.c so that libdwarf has |
| 238 |
functions like dwarf_get_TAG_name() which returns |
| 239 |
functions like dwarf_get_TAG_name() which returns |
| 240 |
the tag as a string (through a pointer argument). |
| 241 |
* dwarf.h: The first word of a comment is now capitalized (1 place). |
| 242 |
* common.c: New, used by gennames.c. |
| 243 |
* common.h: New, used by gennames.c |
| 244 |
* Makefile.in: Now contains changes which build and run |
| 245 |
gennames and create dwarf_names.o (which is part |
| 246 |
of libdwarf). |
| 247 |
* libdwarf2.1.mm: Document the new libdwarf functions. |
| 248 |
* libdwarf2.1.pdf: Regenerated as rev 1.76, 6 June 2009. |
| 249 |
2009-06-05 DavidAnderson <[email protected]> |
| 250 |
* dwarf.h: added new DWARF4 attribute (etc) defines. |
| 251 |
2009-05-10 DavidAnderson <[email protected]> |
| 252 |
* dwarf_frame.c: Remove use of DW_FRAME_UNDEFINED_VAL in |
| 253 |
favor of the value in the dbg structure. |
| 254 |
Adding comments about the meaning of an error case. |
| 255 |
2009-05-07 DavidAnderson <[email protected]> |
| 256 |
* Makefile.in: Ensure temp files all get deleted. |
| 257 |
2009-05-04 DavidAnderson <[email protected]> |
| 258 |
* dwarf_die_deliv.c: Update _dwarf_get_size_of_val() |
| 259 |
call (with its new address_size argument). |
| 260 |
* dwarf_frame.c: Use the new ci_address_size instead |
| 261 |
of de_pointer_size. |
| 262 |
* dwarf_frame.h: Added ci_address_size to cie |
| 263 |
in preparation for this value in DWARF4. |
| 264 |
* dwarf_util.h: Adding address_size functions |
| 265 |
and arguments declarations so address_size can vary by CU. |
| 266 |
* dwarf_util.c: Adding address_size functions |
| 267 |
and arguments so address_size can vary by CU. |
| 268 |
* dwarf_loc.c: Adding function dwarf_loclist_from_expr_a() |
| 269 |
as a version with an address size argument. |
| 270 |
* dwarf_frame2.c: Now initializes new ci_address_size field. |
| 271 |
* dwarf_line.c: Now uses address size for CU instead of |
| 272 |
default de_pointer_size. |
| 273 |
* dwarf_ranges.c: File left out of svn before. |
| 274 |
Implements dwarf_get_ranges() and dwarf_get_ranges_a(), |
| 275 |
the latter is new with address size passed in via a DIE pointer. |
| 276 |
* dwarf_arange.c: Added commentary. Removed erroneous |
| 277 |
insistence that every aranges group have the same |
| 278 |
address_size as the main elf object. |
| 279 |
* dwarf_query.c: Adding address size to internal calls. |
| 280 |
* dwarf_print_lines.c: Added '(file number is %d)' |
| 281 |
to -l -v -v -v output as the |
| 282 |
file number and traditional C zero-origin index index of a |
| 283 |
line table header are not the same value |
| 284 |
(see DWARF3 documentation, the end of section 6.2.5.3). |
| 285 |
* libdwarf2.1.mm: Documented dwarf_loclist_from_expr_a() |
| 286 |
and dwarf_get_ranges_a(). |
| 287 |
* libdwarf2.1.pdf: Regenerated. |
| 288 |
* libdwarf.h: Add commentary. |
| 289 |
Add dwarf_loclist_from_expr_a() and |
| 290 |
dwarf_get_ranges_a() interfaces so address_size passed in. |
| 291 |
2009-04-04 DavidAnderson <[email protected]> |
| 292 |
* libdwarf.h, dwarf_frame.c: Added dwarf_set_frame_cfa_value(). |
| 293 |
Added dwarf_set_frame_rule_initial_value() as proper |
| 294 |
spelling of dwarf_set_frame_rule_inital_value(), keeping |
| 295 |
the old spelling for compatibility. |
| 296 |
* libdwarf2.1.mm: Documented Added dwarf_set_frame_cfa_value(), |
| 297 |
corrected spelling to dwarf_set_frame_rule_initial_value(). |
| 298 |
* libdwarf2.1.pdf: Regenerated. |
| 299 |
* dwarf_opaque.h: Added field de_frame_cfa_col_number so that |
| 300 |
we do not need to use magic macros at execution time. |
| 301 |
* dwarf_init_finish.c: Now sets de_frame_cfa_col_number, |
| 302 |
de_frame_same_value_number, and de_frame_undefined_value_number. |
| 303 |
2009-02-02 DavidAnderson <[email protected]> |
| 304 |
* dwarf.h: Added dwarf extensions reported by |
| 305 |
John Bishop. |
| 306 |
2009-03-30 DavidAnderson <[email protected]> |
| 307 |
* dwarf.h: Added dwarf extensions reported |
| 308 |
on the dwarf-workgroup mailing list by John DelSignore. |
| 309 |
2009-03-19 DavidAnderson <[email protected]> |
| 310 |
* libdwarf.h: Expanded comments. |
| 311 |
* dwarf_die_deliv.c: Expanded comments. |
| 312 |
2009-03-16 DavidAnderson <[email protected]> |
| 313 |
* libdwarf.h: Fixed several instances of |
| 314 |
inconsistent indentation. Documented arguments |
| 315 |
to dwarf_uncompress_integer_block(). |
| 316 |
2009-02-17 DavidAnderson <[email protected]> |
| 317 |
* dwarf_print_lines.c,dwarf_line.c,dwarf_frame.c: C99-isms |
| 318 |
of // comments and declarations-in-code do not belong in |
| 319 |
libdwarf. |
| 320 |
2009-02-14 DavidAnderson <[email protected]> |
| 321 |
* libdwarf.h: Add support for compile-time definition |
| 322 |
of the format for Dwarf_Unsigned types. |
| 323 |
Using macros for DW_PR_DUx etc. |
| 324 |
* dwarf_print_lines.c: Use the DW_PR_DUx macros. |
| 325 |
* configure.in: Define --enable-nonstandardprintf |
| 326 |
* config.h.in: new #undef HAVE_NONSTANDARD_PRINTF_64_FORMAT |
| 327 |
* configure: Regenerated. |
| 328 |
* config.guess, config.sub: Latest version from GNU. |
| 329 |
* dwarf_line.c: Use the DW_PR_DUx macros. |
| 330 |
* dwarf_frame2.c: Use the DW_PR_DUx macros. |
| 331 |
* README: document --enable-nonstandardprintf |
| 332 |
|
| 333 |
2009-02-13 DavidAnderson <[email protected]> |
| 334 |
* libdwarf.h: Added argument to dwarf_print_lines() |
| 335 |
for better error reporting. Added dwarf_check_lineheader() |
| 336 |
which allows some error reporting when not calling dwarf_print_lines(). |
| 337 |
* dwarf_print_lines.c: Implements dwarf_check_lineheader() now. |
| 338 |
* dwarf_sort_line.c: Match up with new arguments to |
| 339 |
dwarf_read_line_table_prefix(). |
| 340 |
* dwarf_line.c: Implement new arguments to |
| 341 |
dwarf_read_line_table_prefix() for better error reporting. |
| 342 |
Allow erroneous ARM-compiler line table header to be used. |
| 343 |
* dwarf_line.h: Adding new argument to dwarf_read_line_table_prefix |
| 344 |
so we can report back on minor errors in the line table prefix. |
| 345 |
2009-01-31 DavidAnderson <[email protected]> |
| 346 |
* libdwarf.h: Corrected DW_DLE_LAST. |
| 347 |
* dwarf_frame.c: Remove accidental use of C99 mid-block |
| 348 |
variable definition. |