| 1 |
2011-12-14 DavidAnderson <[email protected]> |
| 2 |
* libdwarf.h, dwarf_error.c: Add a new error code |
| 3 |
for DW_OP location codes. |
| 4 |
* dwarf_loc.c: Implement support for new DW_OP_GNU codes. |
| 5 |
2011-12-13 DavidAnderson <[email protected]> |
| 6 |
* dwarf.h: Added some GNU extensions. |
| 7 |
* libdwarf.h: Added dwarf_lineoff_b() as |
| 8 |
dwarf_lineoff() wrongly returns a signed column number. |
| 9 |
Added dwarf_add_lineentry_b() as preparation for creating |
| 10 |
DWARF3/4 output. |
| 11 |
* dwarf_line.h: Added new struct fields to accomodate |
| 12 |
DWARF3/4 isa and discriminator fields. |
| 13 |
* dwarf_line.c: Now deals with the VLIW line calculations |
| 14 |
in DWARF4. Adds support for computing the discriminator |
| 15 |
and isa fields. Adds dwarf_lineoff_b() (and dwarf_lineoff |
| 16 |
is now deprecated). Adds dwarf_prologue_end_etc() which |
| 17 |
returns some DWARF3/4 line fields. |
| 18 |
* dwarf_print_lines.c: Adds handling of DWARF3/4 |
| 19 |
line operations and fields and prints the details. |
| 20 |
* libdwarf2.1.mm: Documents the new functions in dwarf_line.c |
| 21 |
Version set to 2.02. |
| 22 |
* libdwarf2.1.pdf: Regenerated. |
| 23 |
* libdwarf2p.1.mm: Documents the new function |
| 24 |
dwaf_add_line_entry_b(). |
| 25 |
Version set to 1.32. |
| 26 |
* libdwarf2p.1.pdf: Regenerated. |
| 27 |
* pro_incl.h: Add parentheses so the WRITE_UNALIGNED macro |
| 28 |
works correctly in all circumtances. |
| 29 |
* pro_opaque.h: Add DEBUG_RANGES and dEBUG_TYPES to the list |
| 30 |
of sections we could generate. Define struct Dwarf_P_Line_Inits_s |
| 31 |
to hold initialization values for line table data so we can later |
| 32 |
make the choices at runtime rather than compile time. |
| 33 |
The new struct is a field of the Dwarf_P_Debug struct. |
| 34 |
* pro_line.h: Added some DWARF3/4 support and preparations |
| 35 |
for emitting DWARF3/4. |
| 36 |
* pro_line.c: Define dwarf_add_line_entry_b() for DWARF3/4 |
| 37 |
line fields, and _dwarf_init_default_line_header_vals() |
| 38 |
to provide a default set of values, the defaults match |
| 39 |
what was previously done. |
| 40 |
Add support for the new DWARF3/4 line table fields. |
| 41 |
* pro_section.c: Add the beginnings of support for creating |
| 42 |
new DWARF3/4 sections and the new standard opcodes. |
| 43 |
Move the field-writing code to small functions making |
| 44 |
the line table writing smaller and easier to read. |
| 45 |
Added the beginnings of allowing writing DWARF3/4 |
| 46 |
line table fields. Some if() missing {} were |
| 47 |
modified by adding {} to avoid future problems. |
| 48 |
2011-12-08 DavidAnderson <[email protected]> |
| 49 |
* dwarf_frame.c: Corrected a typo by adding a space |
| 50 |
to a comment. |
| 51 |
* libdwarf2p.1.mm: A sentence about dwarf_lne_end_sequence() |
| 52 |
was missing its introductory words. New version is 1.31. |
| 53 |
* libdwarf2p.1.pdf: Regenerated. |
| 54 |
2011-11-02 DavidAnderson <[email protected]> |
| 55 |
* dwarf.h: Spelling fix: specfic->specific. |
| 56 |
Rearranged a few comments about MIPS/SGI for |
| 57 |
a better appearance. |
| 58 |
2011-10-29 DavidAnderson <[email protected]> |
| 59 |
* dwarf_alloc.c: Add support for the .debug_types section. |
| 60 |
* dwarf_arange.c,dwarf_global.c: Add commentary about |
| 61 |
debug_info vs debug_types and a new argument to |
| 62 |
an internal function. |
| 63 |
* dwarf_arange.h,dwarf_global.h: Add comment that this is |
| 64 |
debug_info related only. |
| 65 |
* dwarf_die_deliv.c: Now handles .debug_types as well as |
| 66 |
.debug_info, and context information for the two sections |
| 67 |
is kept seperate. |
| 68 |
* dwarf_elf_access.c: Add a check for relocations of .debug_types. |
| 69 |
* dwarf_error.c: Added error strings related to .debug_types. |
| 70 |
* dwarf_form.c: Changes for .debug_types, mainly due to removing |
| 71 |
'info_' from certain struct member names. |
| 72 |
* dwarf_init_finish.c: Notice the .debug_types section. |
| 73 |
New function dwarf_get_section_max_offsets_b() returns |
| 74 |
the size of debug_types (added to existing arguments). |
| 75 |
* dwarf_opaque.h: Fields named *_info_* have the info_ |
| 76 |
removed as they apply to debug_types as well. |
| 77 |
A new struct Dwarf_Debug_InfoTypes holds the data |
| 78 |
for either of .debug_types and .debug_info sections. |
| 79 |
Separating them so the sections can be accessed |
| 80 |
simultaneously. Moved data items from Dwarf_Debug to |
| 81 |
the new struct. DIE structs now have a 'is_info' field |
| 82 |
so a CU and a DIE know whether they are from .debug_info |
| 83 |
or .debug_types. |
| 84 |
* dwarf_query.c: The query functions now work for |
| 85 |
debug_info and debug_query as appropriate. |
| 86 |
* dwarf_util.h: Added _dwarf_load_debug_types() and altered |
| 87 |
a couple internal function prototypes with an 'is_info' flag |
| 88 |
argument. |
| 89 |
* dwarf_util.c: Added _dwarf_load_debug_types(). Altered |
| 90 |
functions so the deal with .debug_types or .debug_info |
| 91 |
as appropriate. |
| 92 |
* libdwarf.h: Added debug_types error codes. |
| 93 |
Added dwarf_siblingof_b() and dwarf_offdie_b() and |
| 94 |
Added dwarf_next_cu_header_c() and |
| 95 |
dwarf_get_cu_die_offset_given_cu_header_offset_b() |
| 96 |
to account for .debug_types or .debug_info as required. |
| 97 |
Added dwarf_get_die_infotypes_flag() so client code |
| 98 |
can know if a DIE is debug_info or debug_types based. |
| 99 |
Added dwarf_get_section_max_offsets_b(), adding |
| 100 |
a debug_types size argument. |
| 101 |
* libdwarf2.1.mm: Documented the new functions. New version |
| 102 |
is 2.0 (somewhat arbitrarily changed from 1.x to 2.0) |
| 103 |
* libdwarf2.1.pdf: Regenerated |
| 104 |
|
| 105 |
2011-10-26 DavidAnderson <[email protected]> |
| 106 |
* Makefile.in, README: Added Make settings of PREINCS POSTINCS |
| 107 |
PRELIBS, POSTLIBS to simplify building when libdwarf or libelf |
| 108 |
are not in the normal locations. Documented usable ways to |
| 109 |
deal with unusual situations at build time. |
| 110 |
2011-10-09 DavidAnderson <[email protected]> . |
| 111 |
* dwarf_die_deliv.c, dwarf_elf_access.c: Fix bad indentation. |
| 112 |
2011-10-05 DavidAnderson <[email protected]> . |
| 113 |
* dwarf_die_deliv.c: When relocations fail, record |
| 114 |
a 'harmless error' and continue the CU loading. |
| 115 |
No way to be sure the error is really harmless, of course. |
| 116 |
But it seems to often be harmless. |
| 117 |
For some if() tests add {} to make the clause extent clear. |
| 118 |
* dwarf_harmless.c: Add a comment prefix to dwarf_harmless_init(). |
| 119 |
2011-10-03 DavidAnderson <[email protected]> |
| 120 |
* dwarf_line.c: Introduce {} in a test to avoid future mistakes. |
| 121 |
2011-09-23 DavidAnderson <[email protected]> |
| 122 |
* dwarf_arange.c: Test for a zero address-size: that indicates |
| 123 |
broken dwarf generation. |
| 124 |
* dwarf_line.c: Test for irrational line number header data and |
| 125 |
error off with DW_DLE_LINE_NUMBER_HEADER_ERROR if we find it. |
| 126 |
Add accidentally-omitted check for version 4. |
| 127 |
* dwarf_error.c, libdwarf.h: New error code |
| 128 |
DW_DLE_LINE_NUMBER_HEADER_ERROR. |
| 129 |
2011-09-16 DavidAnderson <[email protected]> |
| 130 |
* dwarf_elf_access.c: Give up relocating if the Elf symtab |
| 131 |
header sh_entrysize is zero, and refine the test for |
| 132 |
invalid symbol index to be a >= test. |
| 133 |
* dwarf_error.c: Define text message for |
| 134 |
DW_DLE_SYMTAB_SECTION_ENTRYSIZE_ZERO. |
| 135 |
* libdwarf.h: New error code DW_DLE_SYMTAB_SECTION_ENTRYSIZE_ZERO. |
| 136 |
2011-09-15 DavidAnderson <[email protected]> |
| 137 |
* dwarf_elf_access.c: Adding fields to the object |
| 138 |
structs dwarf uses and using them for error checks |
| 139 |
when processing relocations. |
| 140 |
* dwarf_error.c: Adding descriptions of new error messages |
| 141 |
for Elf object file interpretation problems. |
| 142 |
* dwarf_init_finish.c: Adding 'entrysize' field about objects |
| 143 |
do dwarf_elf_access.c can check for object and relocation |
| 144 |
data errors and avoid a coredump. And we memset() a struct |
| 145 |
to ensure there are no uninitialized contents. |
| 146 |
* dwarf_opaque.h: Adding new dss_entrysize and |
| 147 |
dss_reloc_entrysize fields so elf error |
| 148 |
checks can be added to dwarf_elf_access.c. These changes mean |
| 149 |
you must recompile all of libdwarf source, not |
| 150 |
just a subset, when rebuilding (the first time one sees this change). |
| 151 |
* libdwarf.h: Adding entrysize element to Dwarf_Obj_Access_Section_s. |
| 152 |
Non-elf object formats can just set this field zero and ignore it. |
| 153 |
Added new elf-specific error codes for the new checks in |
| 154 |
dwarf_elf_access.c. |
| 155 |
2011-09-14 DavidAnderson <[email protected]> |
| 156 |
* BLDLIBDWARFTAR: Moved a local disk file. Irrelevant |
| 157 |
to everyone but DA. |
| 158 |
* dwarf_arange.c: check that the address_size and segment |
| 159 |
selector size fields are sensible. |
| 160 |
* dwarf_die_deliv.c,dwarf_frame2.c: Give |
| 161 |
DW_DLE_ADDRESS_SIZE_ERROR or DW_DLE_CU_ADDRESS_SIZE_BAD |
| 162 |
if the address size read from a section is obviously wrong. |
| 163 |
Similarly for a bad segment-selector-size give |
| 164 |
DW_DLE_SEGMENT_SIZE_BAD. |
| 165 |
* dwarf_error.c: Added text for the DW_DLE_SEGMENT_SIZE_BAD |
| 166 |
error. |
| 167 |
* dwarf_frame.c: If dwarf_set_default_address_size() is handed |
| 168 |
an address_size that we cannot handle, ignore the input so |
| 169 |
we don't wind up coredumping the library or consumer code. |
| 170 |
* libdwarf2.1.mm: Updated list of error codes a little bit. Rev 1.99 |
| 171 |
* libdwarf2.1.pdf: Regenerated. |
| 172 |
2011-09-08 DavidAnderson <[email protected]> |
| 173 |
* dwarf_frame.c: Fixed bad indents. |
| 174 |
2011-09-02 DavidAnderson <[email protected]> |
| 175 |
* libdwarf2.1.mm: Document the new function |
| 176 |
dwarf_set_default_address_size(). Updated revision to 1.97. |
| 177 |
* libdwarf2.1.pdf: Regenerated. |
| 178 |
* dwarf_frame.c: Implement dwarf_set_default_address_size(). |
| 179 |
* libdwarf.h: Declare the new function dwarf_set_default_address_size(). |
| 180 |
* dwarf_form.c(dwarf_formref): Removed c99-ish |
| 181 |
declaration so C90 can compile the code. |
| 182 |
* Makefile.in, configure.in: If building shared lib |
| 183 |
CFLAGS gets -fPIC added in. |
| 184 |
* configure: Fegenerated. |
| 185 |
* dwarf_loc.c: New test returns DW_DLE_LOC_BAD_TERMINATION |
| 186 |
in case of compiler bug in location expression. |
| 187 |
* dwarf_error.c, libdwarf.h: Define and document the new |
| 188 |
error. |
| 189 |
* pro_opaque.h: Fixed a bad indent. |
| 190 |
|
| 191 |
2011-06-12 DavidAnderson <[email protected]> |
| 192 |
* libdwarf.h: Added dwarf_producer_init_c() and its |
| 193 |
callback functions. Adds a user_data void* to the |
| 194 |
init and callback functions for user convenience. |
| 195 |
* libdwarf2p.1.m: Documented dwarf_producer_init_c(). |
| 196 |
Rev 1.30. |
| 197 |
* libdwarf2p.1.pdf: Regenerated |
| 198 |
* pro_init.c: Implement dwarf_producer_init_c(). |
| 199 |
* pro_opaque.h: Add fields for dwarf_producer_init_c(). |
| 200 |
* pro_reloc_stream.c: Implement dwarf_producer_init_c() callback. |
| 201 |
* pro_reloc_symbolic.c: Implement dwarf_producer_init_c() callback. |
| 202 |
* pro_section.c: Implement dwarf_producer_init_c() callback. |
| 203 |
2011-06-09 DavidAnderson <[email protected]> |
| 204 |
* dwarf_form.c: Code getting access to CU context and |
| 205 |
dbg was repeated many times. Refactored the common |
| 206 |
code into a file-static subprogram. |
| 207 |
2011-06-08 DavidAnderson <[email protected]> |
| 208 |
* libdwarf2.1.mm,libdwarf2.1.pdf: Now discusses |
| 209 |
DW_AT_data_member_location in the context |
| 210 |
if dwarf_loclist_n(). Rev 1.96 |
| 211 |
2011-06-08 DavidAnderson <[email protected]> |
| 212 |
* dwarf_init_finish.c: Inserted missing include of |
| 213 |
dwarf_harmless.h. |
| 214 |
2011-06-07 DavidAnderson <[email protected]> |
| 215 |
* dwarf_elf_access.c: Added EM_QUALCOMM_DSP6 |
| 216 |
machine so that relocations work on a |
| 217 |
Qualcomm relocatable object in the dwarf regressiontests. |
| 218 |
* dwarf_util.c: Fixed indent problems added in previous |
| 219 |
change. |
| 220 |
2011-06-07 DavidAnderson <[email protected]> |
| 221 |
* dwarf_util.c(_dwarf_get_abbrev_for_code): If there is no |
| 222 |
section padding the code could read-from-memory |
| 223 |
one past the end of the section |
| 224 |
which could (in very rare circumstances) coredump |
| 225 |
an application. In addition, earlier in the same funcion |
| 226 |
we did not account for the case where we had already read to |
| 227 |
end of section. Both fixed. |
| 228 |
2011-06-06 DavidAnderson <[email protected]> |
| 229 |
* dwarf_error.c: Fix a typo in an error string. |
| 230 |
* dwarf_query.c: Implement the new function |
| 231 |
dwarf_get_verion_of_die(). |
| 232 |
* libdwarf.h: Add prototype for dwarf_get_verion_of_die(). |
| 233 |
* libdwarf2.1.mm: for dwarf_form_{s,u}data, mention |
| 234 |
the DW_FORM_data{4,8} class ambiguity. |
| 235 |
Document the new function dwarf_get_verion_of_die(). |
| 236 |
Document version now 1.95. |
| 237 |
* libdwarf2.1.pdf: Regenerate. |
| 238 |
2011-06-04 DavidAnderson <[email protected]> |
| 239 |
* NEWS: Mention the non-elf documentation oversight. |
| 240 |
* dwarf_arange.c,dwarf_elf_access.c, dwarf_frame3.c, |
| 241 |
dwarf_funcs.c,dwarf_global.c,dwarf_init_finish.c, |
| 242 |
dwarf_line.c,dwarf_loc.c,dwarf_macro.c,dwarf_print_lines.c, |
| 243 |
dwarf_pubtypes.c,dwarf_query.c,dwarf_ranges.c,dwarf_string.c, |
| 244 |
dwarf_types.c,dwarf_vars.c, dwarf_weaks.c: Everything loading |
| 245 |
a section now checks the result for 'empty' and returns |
| 246 |
DW_DLV_NO_ENTRY explicitly. This makes it easier to |
| 247 |
do nothing safely when there is no data. |
| 248 |
2011-06-04 DavidAnderson <[email protected]> |
| 249 |
* dwarf_line.c (_dwarf_internal_srclines): Created new local functions |
| 250 |
to unify some repeated code in into function calls. One of the |
| 251 |
earlier inline-repetitions was coded wrong. Added {} to ensure clarity |
| 252 |
on the intended scope a couple places. Added initializers to |
| 253 |
a couple of local variables. |
| 254 |
2011-06-04 DavidAnderson <[email protected]> |
| 255 |
* dwarf_alloc.c: Added include "dwarf_harmless.h" so |
| 256 |
a prototype is visible here. |
| 257 |
* dwarf_form.c (dwarf_convert_to_global_offset,dwarf_global_formref): Deleted unused local variables. |
| 258 |
* dwarf_frame.c (dwarf_initialize_fde_table): Uses local instead |
| 259 |
of ignoring it (avoids compiler warning). |
| 260 |
* dwarf_frame2.c (_dwarf_get_fde_list_internal): Delete unused |
| 261 |
local variable. |
| 262 |
* dwarf_line.c (dwarf_srcfiles): Call uses variable expected |
| 263 |
signedness now, avoiding compiler warning. |
| 264 |
* dwarf_print_lines.c: Printf was missing %, gcc -Wall pointed |
| 265 |
out the mistake. |
| 266 |
2011-04-23 DavidAnderson <[email protected]> |
| 267 |
* pro_error.c (_dwarf_p_error): The code attempting to deal with |
| 268 |
an unexpected error code was doing an inappropriate cast and |
| 269 |
an inappropriate (possibly out-of-bounds) reference to an array |
| 270 |
of strings. Removed the cast and removed the questionable |
| 271 |
array reference. |
| 272 |
* dwarf_frame.c: A couple lines were indented badly. Fixed the indentation. |
| 273 |
* pro_line.h: Now __x86_64 also gets MIN_INST_LENGTH 1 |
| 274 |
2011-03-29 DavidAnderson <[email protected]> |
| 275 |
* everything: Redid all indentations for |
| 276 |
consistency. Updated copyrights. Interfaces |
| 277 |
did not change, existing clients should not |
| 278 |
encounter difficulty. |
| 279 |
2011-03-13 DavidAnderson <[email protected]> |
| 280 |
* libdwarf.h, dwarf_error.c: Added |
| 281 |
DW_DLE_DEBUG_FRAME_POSSIBLE_ADDRESS_BOTCH. |
| 282 |
2011-01-20 DavidAnderson <[email protected]> |
| 283 |
* dwarf.h: Added some Apple attribute extensions. |
| 284 |
2011-01-13 DavidAnderson <[email protected]> |
| 285 |
* dwarf_print_lines.c: Handles DW_FORM_exprloc now. With -vvv |
| 286 |
it now prints the dwarf version of the line table header. |
| 287 |
* dwarf_line.c: Handles DW_FORM_exprloc now. |
| 288 |
2011-01-13 DavidAnderson <[email protected]> |
| 289 |
* libdwarf.h: Added new function dwarf_get_die_address_size(). |
| 290 |
* libdwarf2.1.mm: Documented new function dwarf_get_die_address_size(). |
| 291 |
Rev 1.91, 12 January 2011 |
| 292 |
* libdwarf2.1.pdf: Regenerated. |
| 293 |
* dwarf_form.c: Corrected handling of DW_FORM_exprloc. |
| 294 |
* dwarf_query.c: Implemented dwarf_get_die_address_size(). |
| 295 |
Corected handling of DW_FORM_exprloc. |
| 296 |
* dwarf_util.c: Added handling of DW_FORM_exprloc and |
| 297 |
DW_FORM_flag_present. |