| 1 |
2007-12-09 DavidAnderson <[email protected]> |
| 2 |
* dwarf_sort_line.c dwarf_print_lines.c darf_frame.c: Forgot |
| 3 |
to commit yesterday. |
| 4 |
Today's commit includes renaming _dwarf_fde_section_offset |
| 5 |
_dwarf_cie_section_offset, _dwarf_print_lines, _dwarf_ld_sort_lines |
| 6 |
to dwarf_* name while retaining support for the now obsolete |
| 7 |
_dwarf_* form. |
| 8 |
2007-12-08 DavidAnderson <[email protected]> |
| 9 |
* config.h.in, configure.in: Latest linux libelf.h requires |
| 10 |
_GNU_SOURCE to get off64_t defined so dwarfdump compiles. |
| 11 |
Only define _GNU_SOURCE if libelf.h defines off64_t. |
| 12 |
Regenerated configure. |
| 13 |
* config.guess, config.sub: Updated to 2.61 |
| 14 |
* acconfig.h: Deleted, removing autoconf complaint. |
| 15 |
2007-11-14 David Anderson <[email protected]> |
| 16 |
* dwarf_frame2.c (gnu_aug_encodings): Now allows 'S' augmentation |
| 17 |
character in eh_frame. |
| 18 |
2007-10-16 David Anderson <[email protected]> |
| 19 |
* dwarf_alloc.c: Reformat a comment. |
| 20 |
* dwarf_die_deliv.c (dwarf_siblingof): When there is no trailing |
| 21 |
null-DIE in the section, ensure we don't test the contents |
| 22 |
of a byte past section end. |
| 23 |
* dwarf_frame.c: Changed spelling of a local variable |
| 24 |
so it is easier to grep for and to read. |
| 25 |
* dwarf_macro.c (free_macro_stack): Was free()ing memory that |
| 26 |
_dwarf_get_alloc() had supplied, which could lead to core dump. |
| 27 |
Fixed potential memory leaks (said leaks only possible with an |
| 28 |
error in the macro data, not with valid macro section |
| 29 |
data). |
| 30 |
2007-10-15 David Anderson <[email protected]> |
| 31 |
* dwarf_alloc.c: The code supporting the special build |
| 32 |
flag DWARF_SIMPLE_MALLOC |
| 33 |
was broken and could coredump libdwarf |
| 34 |
(which did not affect normal use of libdwarf). |
| 35 |
* dwarf_opaque.h: Remove the field de_simple_malloc_current |
| 36 |
as it is no longer used. |
| 37 |
|
| 38 |
2007-09-04 David Anderson <[email protected]> |
| 39 |
* pro_forms.c: Add commentary relating to the |
| 40 |
recent DWARF4 DW_AT_high_pc change. |
| 41 |
Correct FSF address. |
| 42 |
* libdwarf2p.1.mm: Document dwarf_add_AT_dataref() |
| 43 |
and dwarf_add_AT_ref_address(). |
| 44 |
* libdwarf2p.1.pdf: Regenerate. |
| 45 |
* dwarf.h: Update FSF address. |
| 46 |
* dwarf_opaque.h: Add DWARF4 entry (version stamp). |
| 47 |
Update FSF address. |
| 48 |
* dwarf_die_deliv.c: Add check for .debug_info version 4 |
| 49 |
(version stamp). Update FSF address. |
| 50 |
* libdwarf.h pro_macinfo.h pro_line.h dwarf_incl.h |
| 51 |
pro_alloc.h pro_section.h libdwarfdefs.h pro_util.h |
| 52 |
dwarf_vars.h dwarf_funcs.h pro_error.h dwarf_alloc.h pro_arange.h |
| 53 |
dwarf_arange.h pro_die.h dwarf_global.h pro_expr.h |
| 54 |
pro_reloc_stream.h pro_incl.h pro_encode_nm.h |
| 55 |
dwarf_line.h pro_frame.h pro_opaque.h dwarf_error.h |
| 56 |
dwarf_base_types.h dwarf_abbrev.h pro_types.h pro_reloc_symbolic.h |
| 57 |
dwarf_weaks.h dwarf_util.h dwarf_loc.h malloc_check.h |
| 58 |
dwarf_die_deliv.h acconfig.h dwarf_frame.h dwarf_macro.h |
| 59 |
pro_reloc.h dwarf_types.h |
| 60 |
pro_funcs.c Makefile.in pro_forms.c pro_line.c |
| 61 |
dwarf_print_lines.c pro_alloc.c pro_init.c dwarf_addr_finder.c |
| 62 |
pro_section.c dwarf_form.c dwarf_query.c dwarf_vars.c |
| 63 |
dwarf_pubtypes.c dwarf_frame3.c dwarf_funcs.c pro_error.c |
| 64 |
pro_arange.c dwarf_alloc.c dwarf_arange.c pro_die.c |
| 65 |
dwarf_sort_line.c dwarf_global.c dwarf_init_finish.c pro_weaks.c |
| 66 |
pro_pubnames.c pro_expr.c pro_reloc_stream.c pro_finish.c |
| 67 |
pro_encode_nm.c dwarf_line.c pro_frame.c dwarf_error.c |
| 68 |
dwarf_abbrev.c pro_types.c dwarf_leb.c pro_reloc_symbolic.c |
| 69 |
dwarf_string.c pro_vars.c dwarf_line2.c dwarf_weaks.c |
| 70 |
dwarf_frame2.c dwarf_util.c dwarf_loc.c LIBDWARFCOPYRIGHT |
| 71 |
malloc_check.c dwarf_die_deliv.c dwarf_frame.c dwarf_stubs.c |
| 72 |
dwarf_macro.c pro_reloc.c dwarf_types.c pro_macinfo.c: |
| 73 |
Update FSF address. |
| 74 |
2007-07-26 David Anderson <[email protected]> |
| 75 |
* pro_frame.c: Added commentary about some missing DWARF3 support. |
| 76 |
* dwarf_srclines_dealloc.c: File unused, now deleted. |
| 77 |
2007-07-04 David Anderson <[email protected]> |
| 78 |
* libdwarf.h: dwarf_get_loclist_entry() is implemented, |
| 79 |
removed the erroneous 'unimplemented' comment. |
| 80 |
* libdwarf2.1.mm: Improved the dwarf_get_loclist_entry() |
| 81 |
documentation. |
| 82 |
* libdwarf2.1.pdf: regenerated |
| 83 |
* dwarf_loclist_entry.c: Removed from distribution, the |
| 84 |
source has nothing of interest. |
| 85 |
|
| 86 |
2007-07-03 David Anderson <[email protected]> |
| 87 |
* libdwarf.h: Add declaration of dwarf_loclist_from_expr(); |
| 88 |
* dwarf_loc.c: Implement dwarf_loclist_from_expr() and add |
| 89 |
sign-extension macro calls to case DW_OP_const4s numbers. |
| 90 |
Removed unused local variables. |
| 91 |
* dwarf_form.c: Removed unused local variables. |
| 92 |
* libdwarf2.1.mm: Document dwarf_loclist_from_expr(). |
| 93 |
* libdwarf2.1.pdf: Regenerated. |
| 94 |
2007-07-01 David Anderson <[email protected]> |
| 95 |
* dwarf_frame2.c: Add commentary. |
| 96 |
* dwarf_frame.c: Add in block_len for DW_CFA_val_expression |
| 97 |
so libdwarf does not get confused by this frame expression |
| 98 |
operator. Thanks to Cristian Vlasceanu for providing |
| 99 |
a test case. |
| 100 |
2007-06-29 David Anderson <[email protected]> |
| 101 |
* README: added a note that a few warnings about conversions |
| 102 |
from pointer to integer are normal at libdwarf compile time. |
| 103 |
2007-05-25 David Anderson <[email protected]> |
| 104 |
* dwarf_frame2.c (_dwarf_get_fde_list_internal): |
| 105 |
Correct cie-list-creation so it adds to the tail of the list. |
| 106 |
gcc 4.1.2 generates cie-use in an order the code did |
| 107 |
not properly handle. |
| 108 |
2007-05-08 David Anderson <[email protected]> |
| 109 |
* Makefile.in: Now generates pdf files. |
| 110 |
* mips_extensions.mm: The only changes were to eliminate |
| 111 |
unsupported macro (.PM) and to try to get correct output |
| 112 |
from groff. No technical content change intended. |
| 113 |
The pdf/postscript output remains a little odd though. |
| 114 |
* libdwarf2.1.mm: Remove troff comment line. |
| 115 |
2007-04-18 Chris Quenelle <[email protected]> |
| 116 |
* dwarf_addr_finder.c: repaired comment |
| 117 |
* dwarf_form.c: add support for DW_AT_SUN_func_offsets |
| 118 |
* pro_alloc.c: add memory block tracking to find and fix |
| 119 |
lingering allocations. This is more important for very large |
| 120 |
and intensive compiles. |
| 121 |
* pro_die.c: Implement "markers" which are a generic way to |
| 122 |
do things like relocations. You can set a marker on any |
| 123 |
die, and when dwarf is produced in binary form, you get back |
| 124 |
a list of your markers with the offset of each one in the binary |
| 125 |
output. This is used by the Sun compilers to implement die |
| 126 |
references that span compile unit blocks. (I may remove this, |
| 127 |
it might be unused code related to partial_units and comdat |
| 128 |
support) |
| 129 |
* pro_die.c: Also check for loops in the die relationships so |
| 130 |
that if you add a child twice, or other errors, you won't get |
| 131 |
an infinite loop or a crash. Also start passing a DBG structure |
| 132 |
to all allocation calls to help with memory block tracking. |
| 133 |
* pro_expr.c: Add a public function to "reset" an expr. This |
| 134 |
allows the same expr object to be reused over and over to save |
| 135 |
memory if you're creating many many expressions for a location list. |
| 136 |
* pro_finish.c: Free any left over blocks when the user calls |
| 137 |
dwarf_producer_finish. |
| 138 |
* pro_forms.c: More support for compressed integer blocks. Modify |
| 139 |
error diagnostics so that user-defined attributes can be any type. |
| 140 |
Add support for dwarf_add_AT_ref_address which is just like |
| 141 |
dwarf_add_AT_address, only it produces a DW_FORM_ref_addr instead |
| 142 |
of DW_FORM_addr. This is needed for cross-CU die pointers. |
| 143 |
* pro_incl.h: add macros to control the spelling of relocation types. |
| 144 |
* pro_init.c: use new macros to control reloc types |
| 145 |
* pro_line.h: correct minimum instruction length on x86 |
| 146 |
* pro_opaque.h: add support for markers (see above) and also ability |
| 147 |
have libdwarf tell the caller where the string constants are so |
| 148 |
that they can be recorded as strings in case the binary output of libdwarf |
| 149 |
needs to be converted back into assembly. That's what |
| 150 |
Dwarf_P_Per_Sect_String_Attrs is about. |
| 151 |
Remove de_mem_list as it is never used. |
| 152 |
* pro_reloc_stream.c: repair prototype and comment for |
| 153 |
_dwarf_pro_reloc_name_stream64, and use relocation type macros. |
| 154 |
* pro_section.c: support for markers (see above) and for tracking |
| 155 |
inline string attributes. Add code to sort the attributes so that |
| 156 |
abbreviation table entries will be reduced. Change treatment of |
| 157 |
DW_FORM_ref_addr to be more correct. Some support for packing |
| 158 |
in the middle of sections, this will probably be removed. |
| 159 |
Also pass DBg structure to more allocations. |
| 160 |
* pro_util.h: relocation type values can't be zero. |
| 161 |
2007-04-10 David Anderson <[email protected] |
| 162 |
* dwarf_print_lines.c pro_section.c dwarf_query.c |
| 163 |
dwarf_alloc.c dwarf_arange.c dwarf_sort_line.c |
| 164 |
dwarf_global.c dwarf_line.c dwarf_abbrev.c |
| 165 |
dwarf_frame2.c dwarf_util.c dwarf_loc.c dwarf_util.h |
| 166 |
dwarf_die_deliv.c dwarf_frame.c dwarf_macro.c: Additions |
| 167 |
to source for year 2007 now fit in with pre-existing |
| 168 |
copyright wording. Effectively no change. |
| 169 |
* dwarf_srclines_dealloc.c: Now has the (always-intended) SGI |
| 170 |
LGPL copyright wording. |
| 171 |
2007-04-09 David Anderson <[email protected] |
| 172 |
* dwarf_error.h: Add DW_DLE_LINK_LOOP error code (Sun). |
| 173 |
* libdwarf.h: Add DW_DLE_LINK_LOOP error code (Sun). |
| 174 |
* dwarf.h: Incorporate Sun extensions. Thanks to |
| 175 |
Chris Quenelle at Sun Microsystems. |
| 176 |
2007-04-06 David Anderson <[email protected] |
| 177 |
* dwarf_sort_line.c (_dwarf_update_line_sec): initialize |
| 178 |
Dwarf_Debug_s struct. Thanks to Chris Quenelle of Sun Microsystems. |
| 179 |
Also initialize other local variables. |
| 180 |
2007-04-02 David Anderson <[email protected] |
| 181 |
* dwarf_form.c (dwarf_formsdata, dwarf_formudata): Use |
| 182 |
Dwarf_sfixed in dwarf_formsdata, document need for casts, |
| 183 |
Use Dwarf_Signed as type for READ_UNALIGNED macro use. |
| 184 |
The only real correction here is for a 64bit long compiled |
| 185 |
libdwarf reading 32bit dwarf_formsdata FORM_data4. |
| 186 |
* dwarf_base_types.h: Now Dwarf_sfixed64 and Dwarf_ufixed64 |
| 187 |
are properly declared (so they are usable). |
| 188 |
2007-03-11 David Anderson <[email protected] |
| 189 |
* Makefile.in: use groff to produce postscript. |
| 190 |
* libdwarf2.1.mm libdwarf2.1.ps libdwarf2p.1.mm |
| 191 |
libdwarf2p.1.ps: Clean up the introduction and history. |
| 192 |
Add a non-restrictive copyright notice. |
| 193 |
2007-02-23 David Anderson <[email protected] |
| 194 |
* dwarf_util.h: now the macros use do{} while(0) |
| 195 |
* pro_forms.c dwarf_print_lines.c pro_section.c dwarf_query.c |
| 196 |
dwarf_arange.c dwarf_sort_line.c dwarf_global.c dwarf_line.c |
| 197 |
dwarf_abbrev.c dwarf_frame2.c dwarf_util.c dwarf_loc.c |
| 198 |
dwarf_die_deliv.c dwarf_frame.c: Now have ; |
| 199 |
after all dwarf_util.h macros. Also added local variable |
| 200 |
initializations (compiler noticed). |
| 201 |
* dwarf_macro.c: was missing include of <stdlib.h> for free() |
| 202 |
declaration. |
| 203 |
* dwarf_print_lines.c pro_section.c dwarf_query.c dwarf_alloc.c |
| 204 |
dwarf_arange.c dwarf_sort_line.c dwarf_global.c dwarf_line.c |
| 205 |
dwarf_abbrev.c dwarf_srclines_dealloc.c dwarf_frame2.c |
| 206 |
dwarf_util.c dwarf_loc.c dwarf_die_deliv.c dwarf_frame.c |
| 207 |
dwarf_macro.c: indent run with standard libdwarf options. |
| 208 |
|
| 209 |
2007-02-20 David Anderson <[email protected] |
| 210 |
* dwarf_macro.c (dwarf_get_macro_details): Now call |
| 211 |
dwarf_free_macro_stack() at every return so no data |
| 212 |
is leaked and there is no longer any global data |
| 213 |
(restoring thread safety). |
| 214 |
2007-02-09 David Anderson <[email protected] |
| 215 |
* dwarf_line.c (dwarf_srclines): Added in calls |
| 216 |
to dwarf_free_line_table_prefix() which were omitted |
| 217 |
by accident. Thanks to Cristian Vlasceanu for noticing. |