Skip to content

Commit 73c43d4

Browse files
authored
Merge pull request gimli-rs#499 from philipc/release
Release 0.21.0
2 parents 2467adb + 862f3ce commit 73c43d4

File tree

4 files changed

+66
-13
lines changed

4 files changed

+66
-13
lines changed

CHANGELOG.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,63 @@
22

33
--------------------------------------------------------------------------------
44

5+
## 0.21.0
6+
7+
Released 2020/05/12.
8+
9+
### Breaking changes
10+
11+
* Minimum Rust version increased to 1.38.0.
12+
13+
* Replaced `read::Operation::Literal` with `Operation::UnsignedConstant` and `Operation::SignedConstant`.
14+
Changed `read::Operation::Bra` and `read::Operation::Skip` to contain the target offset instead of the bytecode.
15+
[#479](https://github.com/gimli-rs/gimli/pull/479)
16+
17+
* Changed `write::Expression` to support references. Existing users can convert to use `Expression::raw`.
18+
[#479](https://github.com/gimli-rs/gimli/pull/479)
19+
20+
* Replaced `write::AttributeValue::AnyUnitEntryRef` with `DebugInfoRef`.
21+
Renamed `write::AttributeValue::ThisUnitEntryRef` to `UnitRef`.
22+
[#479](https://github.com/gimli-rs/gimli/pull/479)
23+
24+
* Added more optional features: `endian-reader` and `fallible-iterator`.
25+
[#495](https://github.com/gimli-rs/gimli/pull/495)
26+
[#498](https://github.com/gimli-rs/gimli/pull/498)
27+
28+
### Added
29+
30+
* Added `read::Expression::operations`
31+
[#479](https://github.com/gimli-rs/gimli/pull/479)
32+
33+
### Fixed
34+
35+
* Fixed newlines in `dwarfdump` example.
36+
[#470](https://github.com/gimli-rs/gimli/pull/470)
37+
38+
* Ignore zero terminators when reading `.debug_frame` sections.
39+
[#486](https://github.com/gimli-rs/gimli/pull/486)
40+
41+
* Increase the number of CFI register rules supported by `read::UnwindContext`.
42+
[#487](https://github.com/gimli-rs/gimli/pull/487)
43+
44+
* Fixed version handling and return register encoding when reading `.eh_frame` sections.
45+
[#493](https://github.com/gimli-rs/gimli/pull/493)
46+
47+
### Changed
48+
49+
* Added `EhFrame` and `DebugFrame` to `write::Sections`.
50+
[#492](https://github.com/gimli-rs/gimli/pull/492)
51+
52+
* Improved performance of `write::LineProgram::generate_row`.
53+
[#476](https://github.com/gimli-rs/gimli/pull/476)
54+
55+
* Removed use of the `byteorder`, `arrayvec` and `smallvec` crates.
56+
[#494](https://github.com/gimli-rs/gimli/pull/494)
57+
[#496](https://github.com/gimli-rs/gimli/pull/496)
58+
[#497](https://github.com/gimli-rs/gimli/pull/497)
59+
60+
--------------------------------------------------------------------------------
61+
562
## 0.20.0
663

764
Released 2020/01/11.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[package]
2+
name = "gimli"
3+
version = "0.21.0"
24
authors = ["Nick Fitzgerald <[email protected]>", "Philip Craig <[email protected]>"]
35
categories = ["development-tools::debugging", "development-tools::profiling", "parser-implementations"]
46
description = "A library for reading and writing the DWARF debugging format."
57
documentation = "https://docs.rs/gimli"
68
keywords = ["DWARF", "debug", "ELF", "eh_frame"]
79
license = "Apache-2.0/MIT"
8-
name = "gimli"
910
readme = "./README.md"
1011
repository = "https://github.com/gimli-rs/gimli"
11-
version = "0.20.0"
1212
exclude = ["/ci/*", "/releases/*", "/.travis.yml"]
1313
edition = "2018"
1414

@@ -26,7 +26,7 @@ crossbeam = "0.7.1"
2626
getopts = "0.2"
2727
memmap = "0.7"
2828
num_cpus = "1"
29-
object = "0.18"
29+
object = "0.19"
3030
rayon = "1.0"
3131
regex = "1"
3232
test-assembler = "0.1.3"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add this to your `Cargo.toml`:
3030

3131
```toml
3232
[dependencies]
33-
gimli = "0.20.0"
33+
gimli = "0.21.0"
3434
```
3535

3636
The minimum supported Rust version is 1.38.0.

examples/dwarfdump.rs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use fallible_iterator::FallibleIterator;
55
use gimli::{CompilationUnitHeader, Section, UnitOffset, UnitSectionOffset, UnwindSection};
6-
use object::{target_lexicon, Object, ObjectSection};
6+
use object::{Object, ObjectSection};
77
use regex::bytes::Regex;
88
use std::borrow::{Borrow, Cow};
99
use std::cmp::min;
@@ -534,21 +534,17 @@ where
534534
// TODO: this might be better based on the file format.
535535
let address_size = file
536536
.architecture()
537-
.pointer_width()
537+
.address_size()
538538
.map(|w| w.bytes())
539539
.unwrap_or(mem::size_of::<usize>() as u8);
540540

541541
fn register_name_none(_: gimli::Register) -> Option<&'static str> {
542542
None
543543
}
544544
let arch_register_name = match file.architecture() {
545-
target_lexicon::Architecture::Arm(_) | target_lexicon::Architecture::Aarch64(_) => {
546-
gimli::Arm::register_name
547-
}
548-
target_lexicon::Architecture::I386
549-
| target_lexicon::Architecture::I586
550-
| target_lexicon::Architecture::I686 => gimli::X86::register_name,
551-
target_lexicon::Architecture::X86_64 => gimli::X86_64::register_name,
545+
object::Architecture::Arm | object::Architecture::Aarch64 => gimli::Arm::register_name,
546+
object::Architecture::I386 => gimli::X86::register_name,
547+
object::Architecture::X86_64 => gimli::X86_64::register_name,
552548
_ => register_name_none,
553549
};
554550
let register_name = |register| match arch_register_name(register) {

0 commit comments

Comments
 (0)