Debian Codegraph @

third_party/rust/gimli/CHANGELOG.md

raw
1 # `gimli` Change Log
2
3 --------------------------------------------------------------------------------
4
5 ## 0.31.0
6
7 Released 2024/07/16.
8
9 ### Breaking changes
10
11 * Deleted support for segment selectors.
12 [#720](https://github.com/gimli-rs/gimli/pull/720)
13
14 * Added `read::FileEntry::source` and deleted `Copy` implementation.
15 [#728](https://github.com/gimli-rs/gimli/pull/728)
16
17 * Changed `read::LineRow::execute` to return a `Result`.
18 [#731](https://github.com/gimli-rs/gimli/pull/731)
19
20 * Deleted `Display` implementation for `read::LineInstruction`.
21 [#734](https://github.com/gimli-rs/gimli/pull/734)
22
23 * Changed `read::Error` to be non-exhaustive.
24
25 ### Changed
26
27 * Fixed `Hash` implementation for `read::EndianReader`.
28 [#723](https://github.com/gimli-rs/gimli/pull/723)
29
30 * Changed `read::EhFrameHdr::parse` to validate the FDE count encoding.
31 [#725](https://github.com/gimli-rs/gimli/pull/725)
32
33 * Changed address overflow to be an error for `read::UnwindTableRow`,
34 `read::LineRow`, and `read::ArangeEntry`.
35 [#730](https://github.com/gimli-rs/gimli/pull/730)
36 [#731](https://github.com/gimli-rs/gimli/pull/731)
37 [#732](https://github.com/gimli-rs/gimli/pull/732)
38
39 * Changed wrapping addition for 32-bit addresses to wrap at 32 bits instead of
40 at 64 bits.
41 [#733](https://github.com/gimli-rs/gimli/pull/733)
42
43 * Added earlier validation of address sizes.
44 [#733](https://github.com/gimli-rs/gimli/pull/733)
45
46 ### Added
47
48 * Added `read::IndexSectionId::section_id`.
49 [#719](https://github.com/gimli-rs/gimli/pull/719)
50
51 * Added `read::FrameDescriptionEntry::end_address`.
52 [#727](https://github.com/gimli-rs/gimli/pull/727)
53
54 * Added support for `DW_LNCT_LLVM_source`.
55 [#728](https://github.com/gimli-rs/gimli/pull/728)
56
57 --------------------------------------------------------------------------------
58
59 ## 0.30.0
60
61 Released 2024/05/26.
62
63 ### Breaking changes
64
65 * Added context to some `read::Error` variants.
66 [#703](https://github.com/gimli-rs/gimli/pull/703)
67
68 * Changed type of `read::UnitIndexSection::section` to `IndexSectionId`.
69 [#716](https://github.com/gimli-rs/gimli/pull/716)
70
71 ### Changed
72
73 * Fixed `write::Operation::ImplicitPointer::size`.
74 [#712](https://github.com/gimli-rs/gimli/pull/712)
75
76 * Changed `read::RngListIter` and `read::LocListIter` to skip ranges where
77 the end is before the beginning, instead of returning an error.
78 [#715](https://github.com/gimli-rs/gimli/pull/715)
79
80 * Fixed clippy warnings.
81 [#713](https://github.com/gimli-rs/gimli/pull/713)
82
83 ### Added
84
85 * Added `read::UnitRef`.
86 [#711](https://github.com/gimli-rs/gimli/pull/711)
87
88 --------------------------------------------------------------------------------
89
90 ## 0.29.0
91
92 Released 2024/04/11.
93
94 ### Breaking changes
95
96 * Changed `Reader` type parameter to `ReaderOffset` for `read::UnwindContext` and related types.
97 Replaced `Expression` with `UnwindExpression` in unwind information types.
98 [#703](https://github.com/gimli-rs/gimli/pull/703)
99
100 ### Changed
101
102 * Changed `write::Sections::for_each` and `for_each_mut` to specify section lifetime.
103 [#699](https://github.com/gimli-rs/gimli/pull/699)
104
105 * Fixed writing unwind information with an LSDA encoding that is not `DW_EH_PE_absptr`.
106 [#704](https://github.com/gimli-rs/gimli/pull/704)
107
108 * Fixed parsing for an empty DWP index.
109 [#706](https://github.com/gimli-rs/gimli/pull/706)
110
111 * Improved error handling in `read::Unit::dwo_name`.
112 [#693](https://github.com/gimli-rs/gimli/pull/693)
113
114 * Fixed warnings.
115 [#692](https://github.com/gimli-rs/gimli/pull/692)
116 [#694](https://github.com/gimli-rs/gimli/pull/694)
117 [#695](https://github.com/gimli-rs/gimli/pull/695)
118 [#696](https://github.com/gimli-rs/gimli/pull/696)
119
120 ### Added
121
122 * Added MIPS register definitions.
123 [#690](https://github.com/gimli-rs/gimli/pull/690)
124
125 * Added PowerPC register definitions.
126 [#691](https://github.com/gimli-rs/gimli/pull/691)
127
128 * Added `read::DwarfSections` and `read::DwarfPackageSections`.
129 [#698](https://github.com/gimli-rs/gimli/pull/698)
130
131 * Implemented `BitOr` for `DwEhPe`.
132 [#709](https://github.com/gimli-rs/gimli/pull/709)
133
134 * Added `read::Relocate`, `read::RelocateReader`, and `write::RelocateWriter`.
135 [#709](https://github.com/gimli-rs/gimli/pull/709)
136
137 --------------------------------------------------------------------------------
138
139 ## 0.28.1
140
141 Released 2023/11/24.
142
143 ### Changed
144
145 * Changed `read::AbbreviationsCache` to require manual population using
146 `Dwarf::populate_abbreviations_cache`.
147 [#679](https://github.com/gimli-rs/gimli/pull/679)
148
149 * Changed the default `read::UnwindContextStorage` to use `Box` instead of `Vec`
150 so that its memory usage is limited.
151 [#687](https://github.com/gimli-rs/gimli/pull/687)
152
153 * Changed `read::UnwindTable::new` to always reset the context, because
154 previous errors may have left the context in an invalid state.
155 [#684](https://github.com/gimli-rs/gimli/pull/684)
156
157 * Changed the `Debug` implementation for `read::EndianSlice` to limit the number
158 of bytes it displays.
159 [#686](https://github.com/gimli-rs/gimli/pull/686)
160
161 ### Added
162
163 * Added more AArch64 register definitions.
164 [#680](https://github.com/gimli-rs/gimli/pull/680)
165
166 * Added `read::Unit::new_with_abbreviations`.
167 [#677](https://github.com/gimli-rs/gimli/pull/677)
168
169 * Added `read::Evaluation::value_result`.
170 [#676](https://github.com/gimli-rs/gimli/pull/676)
171
172 --------------------------------------------------------------------------------
173
174 ## 0.28.0
175
176 Released 2023/08/12.
177
178 ### Breaking changes
179
180 * Deleted `impl From<EndianSlice> for &[u8]`. Use `EndianSlice::slice` instead.
181 [#669](https://github.com/gimli-rs/gimli/pull/669)
182
183 * Deleted `impl Index<usize> for EndianSlice` and
184 `impl Index<RangeFrom<usize>> for EndianSlice`.
185 [#669](https://github.com/gimli-rs/gimli/pull/669)
186
187 * Replaced `impl From<Pointer> for u64` with `Pointer::pointer`.
188 [#670](https://github.com/gimli-rs/gimli/pull/670)
189
190 * Updated `fallible-iterator` to 0.3.0.
191 [#672](https://github.com/gimli-rs/gimli/pull/672)
192
193 * Changed some optional dependencies to use the `dep:` feature syntax.
194 [#672](https://github.com/gimli-rs/gimli/pull/672)
195
196 * Added `non_exhaustive` attribute to `read::RegisterRule`,
197 `read::CallFrameInstruction`, and `write::CallFrameInstruction`.
198 [#673](https://github.com/gimli-rs/gimli/pull/673)
199
200 ### Changed
201
202 * The minimum supported rust version for the `read` feature and its dependencies
203 increased to 1.60.0.
204
205 * The minimum supported rust version for other features increased to 1.65.0.
206
207 ### Added
208
209 * Added `Vendor`, `read::DebugFrame::set_vendor`, and `read::EhFrame::set_vendor`.
210 [#673](https://github.com/gimli-rs/gimli/pull/673)
211
212 * Added more ARM and AArch64 register definitions, and
213 `DW_CFA_AARCH64_negate_ra_state` support.
214 [#673](https://github.com/gimli-rs/gimli/pull/673)
215
216 --------------------------------------------------------------------------------
217
218 ## 0.27.3
219
220 Released 2023/06/14.
221
222 ### Changed
223
224 * Excluded test fixtures from published package.
225 [#661](https://github.com/gimli-rs/gimli/pull/661)
226
227 ### Added
228
229 * Added `FallibleIterator` implementation for `read::OperationIter`.
230 [#649](https://github.com/gimli-rs/gimli/pull/649)
231
232 * Added `DW_AT_GNU_deleted` constant.
233 [#658](https://github.com/gimli-rs/gimli/pull/658)
234
235 --------------------------------------------------------------------------------
236
237 ## 0.27.2
238
239 Released 2023/02/15.
240
241 ### Added
242
243 * Added support for tombstones in `read::LineRows`.
244 [#642](https://github.com/gimli-rs/gimli/pull/642)
245
246 --------------------------------------------------------------------------------
247
248 ## 0.27.1
249
250 Released 2023/01/23.
251
252 ### Added
253
254 * Added `SectionId::xcoff_name` and `read::Section::xcoff_section_name`.
255 [#635](https://github.com/gimli-rs/gimli/pull/635)
256
257 * Added `read::Dwarf::make_dwo` and `read::Unit::dwo_name`.
258 [#637](https://github.com/gimli-rs/gimli/pull/637)
259
260 ### Changed
261
262 * Changed `read::DwarfPackage::sections` to handle supplementary files.
263 [#638](https://github.com/gimli-rs/gimli/pull/638)
264
265 --------------------------------------------------------------------------------
266
267 ## 0.27.0
268
269 Released 2022/11/23.
270
271 ### Breaking changes
272
273 * Added `read::Dwarf::abbreviations_cache` to cache abbreviations at offset 0.
274 Changed `read::Dwarf::abbreviations` to return `Result<Arc<Abbreviations>>`,
275 and changed `read::Unit::abbreviations` to `Arc<Abbreviations>`.
276 [#628](https://github.com/gimli-rs/gimli/pull/628)
277
278 ### Added
279
280 * Added LoongArch register definitions.
281 [#624](https://github.com/gimli-rs/gimli/pull/624)
282
283 * Added support for tombstones in `read::LocListIter` and `read::RngListIter`.
284 [#631](https://github.com/gimli-rs/gimli/pull/631)
285
286 --------------------------------------------------------------------------------
287
288 ## 0.26.2
289
290 Released 2022/07/16.
291
292 ### Changed
293
294 * Fixed CFI personality encoding when writing.
295 [#609](https://github.com/gimli-rs/gimli/pull/609)
296
297 * Fixed use of raw pointer for mutation, detected by Miri.
298 [#614](https://github.com/gimli-rs/gimli/pull/614)
299
300 * Fixed `DW_OP_GNU_implicit_pointer` handling for DWARF version 2.
301 [#618](https://github.com/gimli-rs/gimli/pull/618)
302
303 ### Added
304
305 * Added `read::EhHdrTable::iter`.
306 [#619](https://github.com/gimli-rs/gimli/pull/619)
307
308 --------------------------------------------------------------------------------
309
310 ## 0.26.1
311
312 Released 2021/11/02.
313
314 ### Changed
315
316 * Fixed segmentation fault in `ArrayVec<Vec<T>>::into_vec`, which may be used by
317 `read::Evaluation::result`. This regression was introduced in 0.26.0.
318 [#601](https://github.com/gimli-rs/gimli/pull/601)
319
320 --------------------------------------------------------------------------------
321
322 ## 0.26.0
323
324 Released 2021/10/24.
325
326 ### Breaking changes
327
328 * Removed `read::UninitializedUnwindContext`. Use `Box<UnwindContext>` instead.
329 [#593](https://github.com/gimli-rs/gimli/pull/593)
330
331 * Renamed `read::Error::CfiStackFull` to `StackFull`.
332 [#595](https://github.com/gimli-rs/gimli/pull/595)
333
334 * Added `UnwindContextStorage` type parameter to `read::UnwindContext`, `read::UnwindTable`,
335 `read::UnwindTableRow`, and `read::RegisterRuleMap`.
336 [#595](https://github.com/gimli-rs/gimli/pull/595)
337
338 * Added `EvaluationStorage` type parameter to `read::Evaluation`.
339 [#595](https://github.com/gimli-rs/gimli/pull/595)
340
341 * Added `read::SectionId::DebugCuIndex` and `read::SectionId::DebugTuIndex`.
342 [#588](https://github.com/gimli-rs/gimli/pull/588)
343
344 ### Changed
345
346 * Fixed `DW_EH_PE_pcrel` handling in default `write::Writer::write_eh_pointer` implementation.
347 [#576](https://github.com/gimli-rs/gimli/pull/576)
348
349 * Fixed `read::AttributeSpecification::size` for some forms.
350 [#597](https://github.com/gimli-rs/gimli/pull/597)
351
352 * Display more unit details in dwarfdump.
353 [#584](https://github.com/gimli-rs/gimli/pull/584)
354
355 ### Added
356
357 * Added `write::DebuggingInformationEntry::delete_child`.
358 [#570](https://github.com/gimli-rs/gimli/pull/570)
359
360 * Added ARM and AArch64 register definitions.
361 [#574](https://github.com/gimli-rs/gimli/pull/574)
362 [#577](https://github.com/gimli-rs/gimli/pull/577)
363
364 * Added RISC-V register definitions.
365 [#579](https://github.com/gimli-rs/gimli/pull/579)
366
367 * Added `read::DwarfPackage`, `read::DebugCuIndex`, and `read::DebugTuIndex`.
368 [#588](https://github.com/gimli-rs/gimli/pull/588)
369
370 * Added `read-core` feature to allow building without `liballoc`.
371 [#596](https://github.com/gimli-rs/gimli/pull/596)
372
373 * Added `read::EntriesRaw::skip_attributes`.
374 [#597](https://github.com/gimli-rs/gimli/pull/597)
375
376 --------------------------------------------------------------------------------
377
378 ## 0.25.0
379
380 Released 2021/07/26.
381
382 ### Breaking changes
383
384 * `read::FrameDescriptionEntry::unwind_info_for_address` now returns a reference
385 instead of cloning.
386 [#557](https://github.com/gimli-rs/gimli/pull/557)
387
388 * `read::AttributeValue::RangeListsRef` now contains a `RawRangeListsOffset`
389 to allow handling of GNU split DWARF extensions.
390 Use `read::Dwarf::ranges_offset_from_raw` to handle it.
391 [#568](https://github.com/gimli-rs/gimli/pull/568)
392 [#569](https://github.com/gimli-rs/gimli/pull/569)
393
394 * Added `read::Unit::dwo_id`.
395 [#569](https://github.com/gimli-rs/gimli/pull/569)
396
397 ### Changed
398
399 * `.debug_aranges` parsing now accepts version 3.
400 [#560](https://github.com/gimli-rs/gimli/pull/560)
401
402 * `read::Dwarf::attr_ranges_offset` and its callers now handle GNU split DWARF extensions.
403 [#568](https://github.com/gimli-rs/gimli/pull/568)
404 [#569](https://github.com/gimli-rs/gimli/pull/569)
405
406 ### Added
407
408 * Added `read::DebugLineStr::new`.
409 [#556](https://github.com/gimli-rs/gimli/pull/556)
410
411 * Added `read::UnwindTable::into_current_row`.
412 [#557](https://github.com/gimli-rs/gimli/pull/557)
413
414 * Added more `DW_LANG` constants.
415 [#565](https://github.com/gimli-rs/gimli/pull/565)
416
417 * dwarfdump: added DWO parent support.
418 [#568](https://github.com/gimli-rs/gimli/pull/568)
419
420 * Added `read::Dwarf` methods: `ranges_offset_from_raw`, `raw_ranges`, and `raw_locations`.
421 [#568](https://github.com/gimli-rs/gimli/pull/568)
422 [#569](https://github.com/gimli-rs/gimli/pull/569)
423
424 --------------------------------------------------------------------------------
425
426 ## 0.24.0
427
428 Released 2021/05/01.
429
430 ### Breaking changes
431
432 * Minimum Rust version increased to 1.42.0.
433
434 * Added `read::Dwarf::debug_aranges`.
435 [#539](https://github.com/gimli-rs/gimli/pull/539)
436
437 * Replaced `read::DebugAranges::items` with `read::DebugAranges::headers`.
438 [#539](https://github.com/gimli-rs/gimli/pull/539)
439
440 * Added `read::Operation::Wasm*`.
441 [#546](https://github.com/gimli-rs/gimli/pull/546)
442
443 * `read::LineRow::line` now returns `Option<NonZeroU64>`.
444 The `read::ColumnType::Column` variant now contains a `NonZeroU64`.
445 [#551](https://github.com/gimli-rs/gimli/pull/551)
446
447 * Replaced `read::Dwarf::debug_str_sup` with `read::Dwarf::sup`.
448 Deleted `sup` parameter of `read::Dwarf::load`.
449 Added `read::Dwarf::load_sup`.
450 [#554](https://github.com/gimli-rs/gimli/pull/554)
451
452 ### Added
453
454 * dwarfdump: Supplementary object file support.
455 [#552](https://github.com/gimli-rs/gimli/pull/552)
456
457 ### Changed
458
459 * Support `DW_FORM_addrx*` for `DW_AT_low_pc`/`DW_AT_high_pc` in `read::Dwarf`.
460 [#541](https://github.com/gimli-rs/gimli/pull/541)
461
462 * Performance improvement in `EndianReader`.
463 [#549](https://github.com/gimli-rs/gimli/pull/549)
464
465 --------------------------------------------------------------------------------
466
467 ## 0.23.0
468
469 Released 2020/10/27.
470
471 ### Breaking changes
472
473 * Added more variants to `read::UnitType`.
474 Added `read::AttributeValue::DwoId`
475 [#521](https://github.com/gimli-rs/gimli/pull/521)
476
477 * Replaced `CompilationUnitHeader` and `TypeUnitHeader` with `UnitHeader`.
478 Replaced `CompilationUnitHeadersIter` with `DebugInfoUnitHeadersIter`.
479 Replaced `TypeUnitHeadersIter` with `DebugTypesUnitHeadersIter`.
480 [#523](https://github.com/gimli-rs/gimli/pull/523)
481
482
483 ### Added
484
485 * Added read support for split DWARF.
486 [#527](https://github.com/gimli-rs/gimli/pull/527)
487 [#529](https://github.com/gimli-rs/gimli/pull/529)
488
489 * Added `read::Dwarf::attr_address`.
490 [#524](https://github.com/gimli-rs/gimli/pull/524)
491
492 * Added read support for `DW_AT_GNU_addr_base` and `DW_AT_GNU_ranges_base`.
493 [#525](https://github.com/gimli-rs/gimli/pull/525)
494
495 * dwarfdump: Display index values for attributes.
496 [#526](https://github.com/gimli-rs/gimli/pull/526)
497
498 * Added `name_to_register`.
499 [#532](https://github.com/gimli-rs/gimli/pull/532)
500
501 --------------------------------------------------------------------------------
502
503 ## 0.22.0
504
505 Released 2020/07/03.
506
507 ### Breaking changes
508
509 * Fixed `UnitHeader::size_of_header` for DWARF 5 units.
510 [#518](https://github.com/gimli-rs/gimli/pull/518)
511
512 ### Added
513
514 * Added fuzz targets in CI.
515 [#512](https://github.com/gimli-rs/gimli/pull/512)
516
517 * Added read support for `DW_OP_GNU_addr_index` and `DW_OP_GNU_const_index`.
518 [#516](https://github.com/gimli-rs/gimli/pull/516)
519
520 * Added `.dwo` support to dwarfdump.
521 [#516](https://github.com/gimli-rs/gimli/pull/516)
522
523 * Added `SectionId::dwo_name` and `Section::dwo_section_name`.
524 [#517](https://github.com/gimli-rs/gimli/pull/517)
525
526 ### Fixed
527
528 * Fixed panic when reading `DW_FORM_indirect` combined with `DW_FORM_implicit_const`.
529 [#502](https://github.com/gimli-rs/gimli/pull/502)
530
531 * Fixed panic for `read::Abbreviations::get(0)`.
532 [#505](https://github.com/gimli-rs/gimli/pull/505)
533
534 * Fixed arithmetic overflow when reading `.debug_line`.
535 [#508](https://github.com/gimli-rs/gimli/pull/508)
536
537 * Fixed arithmetic overflow when reading CFI.
538 [#509](https://github.com/gimli-rs/gimli/pull/509)
539
540 * Fixed arithmetic overflow and division by zero when reading `.debug_aranges`.
541 [#510](https://github.com/gimli-rs/gimli/pull/510)
542
543 * Don't return error from `read::Unit::new` when `DW_AT_name` or `DW_AT_comp_dir` is missing.
544 [#515](https://github.com/gimli-rs/gimli/pull/515)
545
546 --------------------------------------------------------------------------------
547
548 ## 0.21.0
549
550 Released 2020/05/12.
551
552 ### Breaking changes
553
554 * Minimum Rust version increased to 1.38.0.
555
556 * Replaced `read::Operation::Literal` with `Operation::UnsignedConstant` and `Operation::SignedConstant`.
557 Changed `read::Operation::Bra` and `read::Operation::Skip` to contain the target offset instead of the bytecode.
558 [#479](https://github.com/gimli-rs/gimli/pull/479)
559
560 * Changed `write::Expression` to support references. Existing users can convert to use `Expression::raw`.
561 [#479](https://github.com/gimli-rs/gimli/pull/479)
562
563 * Replaced `write::AttributeValue::AnyUnitEntryRef` with `DebugInfoRef`.
564 Renamed `write::AttributeValue::ThisUnitEntryRef` to `UnitRef`.
565 [#479](https://github.com/gimli-rs/gimli/pull/479)
566
567 * Added more optional features: `endian-reader` and `fallible-iterator`.
568 [#495](https://github.com/gimli-rs/gimli/pull/495)
569 [#498](https://github.com/gimli-rs/gimli/pull/498)
570
571 ### Added
572
573 * Added `read::Expression::operations`
574 [#479](https://github.com/gimli-rs/gimli/pull/479)
575
576 ### Fixed
577
578 * Fixed newlines in `dwarfdump` example.
579 [#470](https://github.com/gimli-rs/gimli/pull/470)
580
581 * Ignore zero terminators when reading `.debug_frame` sections.
582 [#486](https://github.com/gimli-rs/gimli/pull/486)
583
584 * Increase the number of CFI register rules supported by `read::UnwindContext`.
585 [#487](https://github.com/gimli-rs/gimli/pull/487)
586
587 * Fixed version handling and return register encoding when reading `.eh_frame` sections.
588 [#493](https://github.com/gimli-rs/gimli/pull/493)
589
590 ### Changed
591
592 * Added `EhFrame` and `DebugFrame` to `write::Sections`.
593 [#492](https://github.com/gimli-rs/gimli/pull/492)
594
595 * Improved performance of `write::LineProgram::generate_row`.
596 [#476](https://github.com/gimli-rs/gimli/pull/476)
597
598 * Removed use of the `byteorder`, `arrayvec` and `smallvec` crates.
599 [#494](https://github.com/gimli-rs/gimli/pull/494)
600 [#496](https://github.com/gimli-rs/gimli/pull/496)
601 [#497](https://github.com/gimli-rs/gimli/pull/497)
602
603 --------------------------------------------------------------------------------
604
605 ## 0.20.0
606
607 Released 2020/01/11.
608
609 ### Breaking changes
610
611 * Changed type of `DwTag`, `DwAt`, and `DwForm` constants.
612 [#451](https://github.com/gimli-rs/gimli/pull/451)
613
614 * Added `read/write::AttributeValue::DebugMacroRef`, and returned where
615 required in `read::Attribute::value`. Added `SectionId::DebugMacro`.
616 [#454](https://github.com/gimli-rs/gimli/pull/454)
617
618 * Deleted `alloc` feature, and fixed `no-std` builds with stable rust.
619 [#459](https://github.com/gimli-rs/gimli/pull/459)
620
621 * Deleted `read::Error::description`, and changed `<read::Error as Display>`
622 to display what was previously the description.
623 [#462](https://github.com/gimli-rs/gimli/pull/462)
624
625 ### Added
626
627 * Added GNU view constants.
628 [#434](https://github.com/gimli-rs/gimli/pull/434)
629
630 * Added `read::EntriesRaw` for low level DIE parsing.
631 [#455](https://github.com/gimli-rs/gimli/pull/455)
632
633 * Added `examples/simple-line.rs`.
634 [#460](https://github.com/gimli-rs/gimli/pull/460)
635
636 ### Fixed
637
638 * Fixed handling of CFI augmentations without data.
639 [#438](https://github.com/gimli-rs/gimli/pull/438)
640
641 * dwarfdump: fix panic for malformed expressions.
642 [#447](https://github.com/gimli-rs/gimli/pull/447)
643
644 * dwarfdump: fix handling of Mach-O relocations.
645 [#449](https://github.com/gimli-rs/gimli/pull/449)
646
647 ### Changed
648
649 * Improved abbreviation parsing performance.
650 [#451](https://github.com/gimli-rs/gimli/pull/451)
651
652 --------------------------------------------------------------------------------
653
654 ## 0.19.0
655
656 Released 2019/07/08.
657
658 ### Breaking changes
659
660 * Small API changes related to `.debug_loc` and `.debug_loclists`:
661 added `read::RawLocListEntry::AddressOrOffsetPair` enum variant,
662 added `write::Sections::debug_loc/debug_loclists` public members,
663 and replaced `write::AttributeValue::LocationListsRef` with `LocationListRef`.
664 [#425](https://github.com/gimli-rs/gimli/pull/425)
665
666 ### Added
667
668 * Added `read::Attribute::exprloc_value` and `read::AttributeValue::exprloc_value`.
669 [#422](https://github.com/gimli-rs/gimli/pull/422)
670
671 * Added support for writing `.debug_loc` and `.debug_loclists` sections.
672 [#425](https://github.com/gimli-rs/gimli/pull/425)
673
674 * Added `-G` flag to `dwarfdump` example to display global offsets.
675 [#427](https://github.com/gimli-rs/gimli/pull/427)
676
677 * Added `examples/simple.rs`.
678 [#429](https://github.com/gimli-rs/gimli/pull/429)
679
680 ### Fixed
681
682 * `write::LineProgram::from` no longer requires `DW_AT_name` or `DW_AT_comp_dir`
683 attributes to be present in the unit DIE.
684 [#430](https://github.com/gimli-rs/gimli/pull/430)
685
686 --------------------------------------------------------------------------------
687
688 ## 0.18.0
689
690 Released 2019/04/25.
691
692 The focus of this release has been on improving support for reading CFI,
693 and adding support for writing CFI.
694
695 ### Breaking changes
696
697 * For types which have an `Offset` type parameter, the default `Offset`
698 has changed from `usize` to `R::Offset`.
699 [#392](https://github.com/gimli-rs/gimli/pull/392)
700
701 * Added an `Offset` type parameter to the `read::Unit` type to allow variance.
702 [#393](https://github.com/gimli-rs/gimli/pull/393)
703
704 * Changed the `UninitializedUnwindContext::initialize` method to borrow `self`,
705 and return `&mut UnwindContext`. Deleted the `InitializedUnwindContext` type.
706 [#395](https://github.com/gimli-rs/gimli/pull/395)
707
708 * Deleted the `UnwindSection` type parameters from the `CommonInformationEntry`,
709 `FrameDescriptionEntry`, `UninitializedUnwindContext`,
710 `UnwindContext`, and `UnwindTable` types.
711 [#399](https://github.com/gimli-rs/gimli/pull/399)
712
713 * Changed the signature of the `get_cie` callback parameter for various functions.
714 The signature now matches the `UnwindSection::cie_from_offset` method, so
715 that method can be used as the parameter.
716 [#400](https://github.com/gimli-rs/gimli/pull/400)
717
718 * Reduced the number of lifetime parameters for the `UnwindTable` type.
719 [#400](https://github.com/gimli-rs/gimli/pull/400)
720
721 * Updated `fallible-iterator` to version 0.2.0.
722 [#407](https://github.com/gimli-rs/gimli/pull/407)
723
724 * Added a parameter to the `Error::UnexpectedEof` enum variant.
725 [#408](https://github.com/gimli-rs/gimli/pull/408)
726
727 ### Added
728
729 * Update to 2018 edition.
730 [#391](https://github.com/gimli-rs/gimli/pull/391)
731
732 * Added the `FrameDescriptionEntry::unwind_info_for_address` method.
733 [#396](https://github.com/gimli-rs/gimli/pull/396)
734
735 * Added the `FrameDescriptionEntry::rows` method.
736 [#396](https://github.com/gimli-rs/gimli/pull/396)
737
738 * Added the `EhHdrTable::unwind_info_for_address` method.
739 [#400](https://github.com/gimli-rs/gimli/pull/400)
740
741 * Added the `EhHdrTable::fde_for_address` method and deprecated the
742 `EhHdrTable::lookup_and_parse` method.
743 [#400](https://github.com/gimli-rs/gimli/pull/400)
744
745 * Added the `EhHdrTable::pointer_to_offset` method.
746 [#400](https://github.com/gimli-rs/gimli/pull/400)
747
748 * Added the `UnwindSection::fde_for_address` method.
749 [#396](https://github.com/gimli-rs/gimli/pull/396)
750
751 * Added the `UnwindSection::fde_from_offset` method.
752 [#400](https://github.com/gimli-rs/gimli/pull/400)
753
754 * Added the `UnwindSection::partial_fde_from_offset` method.
755 [#400](https://github.com/gimli-rs/gimli/pull/400)
756
757 * Added the `Section::id` method.
758 [#406](https://github.com/gimli-rs/gimli/pull/406)
759
760 * Added the `Dwarf::load` method, and corresponding methods for individual sections.
761 [#406](https://github.com/gimli-rs/gimli/pull/406)
762
763 * Added the `Dwarf::borrow` method, and corresponding methods for individual sections.
764 [#406](https://github.com/gimli-rs/gimli/pull/406)
765
766 * Added the `Dwarf::format_error` method.
767 [#408](https://github.com/gimli-rs/gimli/pull/408)
768
769 * Added the `Dwarf::die_ranges` method.
770 [#417](https://github.com/gimli-rs/gimli/pull/417)
771
772 * Added the `Dwarf::unit_ranges` method.
773 [#417](https://github.com/gimli-rs/gimli/pull/417)
774
775 * Added support for writing `.debug_frame` and `.eh_frame` sections.
776 [#412](https://github.com/gimli-rs/gimli/pull/412)
777 [#419](https://github.com/gimli-rs/gimli/pull/419)
778
779 ### Fixed
780
781 * The `code_alignment_factor` is now used when evaluating CFI instructions
782 that advance the location.
783 [#401](https://github.com/gimli-rs/gimli/pull/401)
784
785 * Fixed parsing of pointers encoded with `DW_EH_PE_funcrel`.
786 [#402](https://github.com/gimli-rs/gimli/pull/402)
787
788 * Use the FDE address encoding from the augmentation when parsing `DW_CFA_set_loc`.
789 [#403](https://github.com/gimli-rs/gimli/pull/403)
790
791 * Fixed setting of `.eh_frame` base addresses in dwarfdump.
792 [#410](https://github.com/gimli-rs/gimli/pull/410)
793
794 ## 0.17.0
795
796 Released 2019/02/21.
797
798 The focus of this release has been on improving DWARF 5 support, and
799 adding support for writing DWARF.
800
801 ### Breaking changes
802
803 * Changed register values to a `Register` type instead of `u8`/`u64`.
804 [#328](https://github.com/gimli-rs/gimli/pull/328)
805
806 * Replaced `BaseAddresses::set_cfi` with `set_eh_frame_hdr` and `set_eh_frame`.
807 Replaced `BaseAddresses::set_data` with `set_got`.
808 You should now use the same `BaseAddresses` value for parsing both
809 `.eh_frame` and `.eh_frame_hdr`.
810 [#351](https://github.com/gimli-rs/gimli/pull/351)
811
812 * Renamed many types and functions related to `.debug_line`.
813 Renamed `LineNumberProgram` to `LineProgram`.
814 Renamed `IncompleteLineNumberProgram` to `IncompleteLineProgram`.
815 Renamed `CompleteLineNumberProgram` to `CompleteLineProgram`.
816 Renamed `LineNumberProgramHeader` to `LineProgramHeader`.
817 Renamed `LineNumberRow` to `LineRow`.
818 Renamed `StateMachine` to `LineRows`.
819 Renamed `Opcode` to `LineInstruction`.
820 Renamed `OpcodesIter` to `LineInstructions`.
821 Renamed `LineNumberSequence` to `LineSequence`.
822 [#359](https://github.com/gimli-rs/gimli/pull/359)
823
824 * Added `Offset` type parameter to `AttributeValue`, `LineProgram`,
825 `IncompleteLineProgram`, `CompleteLineProgram`, `LineRows`, `LineInstruction`,
826 and `FileEntry`.
827 [#324](https://github.com/gimli-rs/gimli/pull/324)
828
829 * Changed `FileEntry::path_name`, `FileEntry::directory`, and
830 `LineProgramHeader::directory` to return an `AttributeValue` instead
831 of a `Reader`.
832 [#366](https://github.com/gimli-rs/gimli/pull/366)
833
834 * Renamed `FileEntry::last_modification` to `FileEntry::timestamp`
835 and renamed `FileEntry::length` to `FileEntry::size`.
836 [#366](https://github.com/gimli-rs/gimli/pull/366)
837
838 * Added an `Encoding` type. Changed many functions that previously accepted
839 `Format`, version or address size parameters to accept an `Encoding`
840 parameter instead.
841 Notable changes are `LocationLists::locations`, `RangeLists::ranges`,
842 and `Expression::evaluation`.
843 [#364](https://github.com/gimli-rs/gimli/pull/364)
844
845 * Changed return type of `LocationLists::new` and `RangeLists::new`.
846 [#370](https://github.com/gimli-rs/gimli/pull/370)
847
848 * Added parameters to `LocationsLists::locations` and `RangeLists::ranges`
849 to support `.debug_addr`.
850 [#358](https://github.com/gimli-rs/gimli/pull/358)
851
852 * Added more `AttributeValue` variants: `DebugAddrBase`, `DebugAddrIndex`,
853 `DebugLocListsBase`, `DebugLocListsIndex`, `DebugRngListsBase`, `DebugRngListsIndex`,
854 `DebugStrOffsetsBase`, `DebugStrOffsetsIndex`, `DebugLineStrRef`.
855 [#358](https://github.com/gimli-rs/gimli/pull/358)
856
857 * Changed `AttributeValue::Data*` attributes to native endian integers instead
858 of byte arrays.
859 [#365](https://github.com/gimli-rs/gimli/pull/365)
860
861 * Replaced `EvaluationResult::TextBase` with
862 `EvaluationResult::RequiresRelocatedAddress`. The handling of `TextBase`
863 was incorrect.
864 [#335](https://github.com/gimli-rs/gimli/pull/335)
865
866 * Added `EvaluationResult::IndexedAddress` for operations that require an
867 address from `.debug_addr`.
868 [#358](https://github.com/gimli-rs/gimli/pull/358)
869
870 * Added `Reader::read_slice`. Added a default implementation of
871 `Reader::read_u8_array` which uses this.
872 [#358](https://github.com/gimli-rs/gimli/pull/358)
873
874 ### Added
875
876 * Added initial support for writing DWARF. This is targeted at supporting
877 line number information only.
878 [#340](https://github.com/gimli-rs/gimli/pull/340)
879 [#344](https://github.com/gimli-rs/gimli/pull/344)
880 [#346](https://github.com/gimli-rs/gimli/pull/346)
881 [#361](https://github.com/gimli-rs/gimli/pull/361)
882 [#362](https://github.com/gimli-rs/gimli/pull/362)
883 [#365](https://github.com/gimli-rs/gimli/pull/365)
884 [#368](https://github.com/gimli-rs/gimli/pull/368)
885 [#382](https://github.com/gimli-rs/gimli/pull/382)
886
887 * Added `read` and `write` Cargo features. Both are enabled by default.
888 [#343](https://github.com/gimli-rs/gimli/pull/343)
889
890 * Added support for reading DWARF 5 `.debug_line` and `.debug_line_str` sections.
891 [#366](https://github.com/gimli-rs/gimli/pull/366)
892
893 * Added support for reading DWARF 5 `.debug_str_offsets` sections, including
894 parsing `DW_FORM_strx*` attributes.
895 [#358](https://github.com/gimli-rs/gimli/pull/358)
896
897 * Added support for reading DWARF 5 `.debug_addr` sections, including parsing
898 `DW_FORM_addrx*` attributes and evaluating `DW_OP_addrx` and `DW_OP_constx`
899 operations.
900 [#358](https://github.com/gimli-rs/gimli/pull/358)
901
902 * Added support for reading DWARF 5 indexed addresses and offsets in
903 `.debug_loclists` and `.debug_rnglists`, including parsing `DW_FORM_rnglistx`
904 and `DW_FORM_loclistx` attributes.
905 [#358](https://github.com/gimli-rs/gimli/pull/358)
906
907 * Added high level `Dwarf` and `Unit` types. Existing code does not need to
908 switch to using these types, but doing so will make DWARF 5 support simpler.
909 [#352](https://github.com/gimli-rs/gimli/pull/352)
910 [#380](https://github.com/gimli-rs/gimli/pull/380)
911 [#381](https://github.com/gimli-rs/gimli/pull/381)
912
913 * Added `EhFrame::set_address_size` and `DebugFrame::set_address_size` methods
914 to allow parsing non-native CFI sections. The default address size is still
915 the native size.
916 [#325](https://github.com/gimli-rs/gimli/pull/325)
917
918 * Added architecture specific definitions for `Register` values and names.
919 Changed dwarfdump to print them.
920 [#328](https://github.com/gimli-rs/gimli/pull/328)
921
922 * Added support for reading relocatable DWARF sections.
923 [#337](https://github.com/gimli-rs/gimli/pull/337)
924
925 * Added parsing of `DW_FORM_data16`.
926 [#366](https://github.com/gimli-rs/gimli/pull/366)
927
928 ### Fixed
929
930 * Fixed parsing DWARF 5 ranges with `start == end == 0`.
931 [#323](https://github.com/gimli-rs/gimli/pull/323)
932
933 * Changed `LineRows` to be covariant in its `Reader` type parameter.
934 [#324](https://github.com/gimli-rs/gimli/pull/324)
935
936 * Fixed handling of empty units in dwarfdump.
937 [#330](https://github.com/gimli-rs/gimli/pull/330)
938
939 * Fixed `UnitHeader::length_including_self` for `Dwarf64`.
940 [#342](https://github.com/gimli-rs/gimli/pull/342)
941
942 * Fixed parsing of `DW_CFA_set_loc`.
943 [#355](https://github.com/gimli-rs/gimli/pull/355)
944
945 * Fixed handling of multiple headers in `.debug_loclists` and `.debug_rnglists`.
946 [#370](https://github.com/gimli-rs/gimli/pull/370)
947
948 --------------------------------------------------------------------------------
949
950 ## 0.16.1
951
952 Released 2018/08/28.
953
954 ### Added
955
956 * Added `EhFrameHdr::lookup_and_parse`. [#316][]
957 * Added support for `DW_CFA_GNU_args_size`. [#319][]
958
959 ### Fixed
960
961 * Implement `Send`/`Sync` for `SubRange`. [#305][]
962 * Fixed `alloc` support on nightly. [#306][] [#310][]
963
964 [#305]: https://github.com/gimli-rs/gimli/pull/305
965 [#306]: https://github.com/gimli-rs/gimli/pull/306
966 [#310]: https://github.com/gimli-rs/gimli/pull/310
967 [#316]: https://github.com/gimli-rs/gimli/pull/316
968 [#319]: https://github.com/gimli-rs/gimli/pull/319
969
970 --------------------------------------------------------------------------------
971
972 ## 0.16.0
973
974 Released 2018/06/01.
975
976 ### Added
977
978 * Added support for building in `#![no_std]` environments, when the `alloc`
979 crate is available. Disable the "std" feature and enable the "alloc"
980 feature. [#138][] [#271][]
981
982 * Added support for DWARF 5 `.debug_rnglists` and `.debug_loclists`
983 sections. [#272][]
984
985 * Added support for DWARF 5 `DW_FORM_ref_sup` and `DW_FORM_strp_sup` attribute
986 forms. [#288][]
987
988 * Added support for DWARF 5 operations on typed values. [#293][]
989
990 * A `dwarf-validate` example program that checks the integrity of the given
991 DWARF and its references between sections. [#290][]
992
993 * Added the `EndianReader<T>` type, an easy way to define a custom `Reader`
994 implementation with a reference to a generic buffer of bytes and an associated
995 endianity. [#298][] [#302][]
996
997 ### Changed
998
999 * Various speed improvements for evaluating `.debug_line` line number
1000 programs. [#276][]
1001
1002 * The example `dwarfdump` clone is a [whole lot faster
1003 now][dwarfdump-faster]. [#282][] [#284][] [#285][]
1004
1005 ### Deprecated
1006
1007 * `EndianBuf` has been renamed to `EndianSlice`, use that name instead. [#295][]
1008
1009 ### Fixed
1010
1011 * Evaluating the `DW_CFA_restore_state` opcode properly maintains the current
1012 location. Previously it would incorrectly restore the old location when
1013 popping from evaluation stack. [#274][]
1014
1015 [#271]: https://github.com/gimli-rs/gimli/issues/271
1016 [#138]: https://github.com/gimli-rs/gimli/issues/138
1017 [#274]: https://github.com/gimli-rs/gimli/issues/274
1018 [#272]: https://github.com/gimli-rs/gimli/issues/272
1019 [#276]: https://github.com/gimli-rs/gimli/issues/276
1020 [#282]: https://github.com/gimli-rs/gimli/issues/282
1021 [#285]: https://github.com/gimli-rs/gimli/issues/285
1022 [#284]: https://github.com/gimli-rs/gimli/issues/284
1023 [#288]: https://github.com/gimli-rs/gimli/issues/288
1024 [#290]: https://github.com/gimli-rs/gimli/issues/290
1025 [#293]: https://github.com/gimli-rs/gimli/issues/293
1026 [#295]: https://github.com/gimli-rs/gimli/issues/295
1027 [#298]: https://github.com/gimli-rs/gimli/issues/298
1028 [#302]: https://github.com/gimli-rs/gimli/issues/302
1029 [dwarfdump-faster]: https://robert.ocallahan.org/2018/03/speeding-up-dwarfdump-with-rust.html
1030
1031 --------------------------------------------------------------------------------
1032
1033 ## 0.15.0
1034
1035 Released 2017/12/01.
1036
1037 ### Added
1038
1039 * Added the `EndianBuf::to_string()` method. [#233][]
1040
1041 * Added more robust error handling in our example `dwarfdump` clone. [#234][]
1042
1043 * Added `FrameDescriptionEntry::initial_address` method. [#237][]
1044
1045 * Added `FrameDescriptionEntry::len` method. [#237][]
1046
1047 * Added the `FrameDescriptionEntry::entry_len` method. [#241][]
1048
1049 * Added the `CommonInformationEntry::offset` method. [#241][]
1050
1051 * Added the `CommonInformationEntry::entry_len` method. [#241][]
1052
1053 * Added the `CommonInformationEntry::version` method. [#241][]
1054
1055 * Added the `CommonInformationEntry::augmentation` method. [#241][]
1056
1057 * Added the `CommonInformationEntry::code_alignment_factor` method. [#241][]
1058
1059 * Added the `CommonInformationEntry::data_alignment_factor` method. [#241][]
1060
1061 * Added the `CommonInformationEntry::return_address_register` method. [#241][]
1062
1063 * Added support for printing `.eh_frame` sections to our example `dwarfdump`
1064 clone. [#241][]
1065
1066 * Added support for parsing the `.eh_frame_hdr` section. On Linux, the
1067 `.eh_frame_hdr` section provides a pointer to the already-mapped-in-memory
1068 `.eh_frame` data, so that it doesn't need to be duplicated, and a binary
1069 search table of its entries for faster unwinding information lookups. [#250][]
1070
1071 * Added support for parsing DWARF 5 compilation unit headers. [#257][]
1072
1073 * Added support for DWARF 5's `DW_FORM_implicit_const`. [#257][]
1074
1075 ### Changed
1076
1077 * Unwinding methods now give ownership of the unwinding context back to the
1078 caller if errors are encountered, not just on the success path. This allows
1079 recovering from errors in signal-safe code, where constructing a new unwinding
1080 context is not an option because it requires allocation. This is a **breaking
1081 change** affecting `UnwindSection::unwind_info_for_address` and
1082 `UninitializedUnwindContext::initialize`. [#241][]
1083
1084 * `CfaRule` and `RegisterRule` now expose their `DW_OP` expressions as
1085 `Expression`. This is a minor **breaking change**. [#241][]
1086
1087 * The `Error::UnknownVersion` variant now contains the unknown version
1088 number. This is a minor **breaking change**. [#245][]
1089
1090 * `EvaluationResult::RequiresEntryValue` requires an `Expression` instead of a
1091 `Reader` now. This is a minor **breaking change**. [#256][]
1092
1093
1094 [#233]: https://github.com/gimli-rs/gimli/pull/233
1095 [#234]: https://github.com/gimli-rs/gimli/pull/234
1096 [#237]: https://github.com/gimli-rs/gimli/pull/237
1097 [#241]: https://github.com/gimli-rs/gimli/pull/241
1098 [#245]: https://github.com/gimli-rs/gimli/pull/245
1099 [#250]: https://github.com/gimli-rs/gimli/pull/250
1100 [#256]: https://github.com/gimli-rs/gimli/pull/256
1101 [#257]: https://github.com/gimli-rs/gimli/pull/257
1102
1103 --------------------------------------------------------------------------------
1104
1105 ## 0.14.0
1106
1107 Released 2017/08/08.
1108
1109 ### Added
1110
1111 * All `pub` types now `derive(Hash)`. [#192][]
1112
1113 * All the constants from DWARF 5 are now defined. [#193][]
1114
1115 * Added support for the `DW_OP_GNU_parameter_ref` GNU extension to parsing and
1116 evaluation DWARF opcodes. [#208][]
1117
1118 * Improved LEB128 parsing performance. [#216][]
1119
1120 * Improved `.debug_{aranges,pubnames,pubtypes}` parsing performance. [#218][]
1121
1122 * Added the ability to choose endianity dynamically at run time, rather than
1123 only statically at compile time. [#219][]
1124
1125 ### Changed
1126
1127 * The biggest change of this release is that `gimli` no longer requires the
1128 object file's section be fully loaded into memory. This enables using `gimli`
1129 on 32 bit platforms where there often isn't enough contiguous virtual memory
1130 address space to load debugging information into. The default behavior is
1131 still geared for 64 bit platforms, where address space overfloweth, and you
1132 can still load the whole sections of the object file (or the entire object
1133 file) into memory. This is abstracted over with the `gimli::Reader`
1134 trait. This manifests as small (but many) breaking changes to much of the
1135 public API. [#182][]
1136
1137 ### Fixed
1138
1139 * The `DW_END_*` constants for defining endianity of a compilation unit were
1140 previously incorrect. [#193][]
1141
1142 * The `DW_OP_addr` opcode is relative to the base address of the `.text` section
1143 of the binary, but we were incorrectly treating it as an absolute value. [#210][]
1144
1145 [GitHub]: https://github.com/gimli-rs/gimli
1146 [crates.io]: https://crates.io/crates/gimli
1147 [contributing]: https://github.com/gimli-rs/gimli/blob/master/CONTRIBUTING.md
1148 [easy]: https://github.com/gimli-rs/gimli/issues?q=is%3Aopen+is%3Aissue+label%3Aeasy
1149 [#192]: https://github.com/gimli-rs/gimli/pull/192
1150 [#193]: https://github.com/gimli-rs/gimli/pull/193
1151 [#182]: https://github.com/gimli-rs/gimli/issues/182
1152 [#208]: https://github.com/gimli-rs/gimli/pull/208
1153 [#210]: https://github.com/gimli-rs/gimli/pull/210
1154 [#216]: https://github.com/gimli-rs/gimli/pull/216
1155 [#218]: https://github.com/gimli-rs/gimli/pull/218
1156 [#219]: https://github.com/gimli-rs/gimli/pull/219