Skip to content

Commit

Permalink
Merge pull request #499 from philipc/release
Browse files Browse the repository at this point in the history
Release 0.21.0
  • Loading branch information
philipc committed May 12, 2020
2 parents 2467adb + 862f3ce commit 73c43d4
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 13 deletions.
57 changes: 57 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,63 @@

--------------------------------------------------------------------------------

## 0.21.0

Released 2020/05/12.

### Breaking changes

* Minimum Rust version increased to 1.38.0.

* Replaced `read::Operation::Literal` with `Operation::UnsignedConstant` and `Operation::SignedConstant`.
Changed `read::Operation::Bra` and `read::Operation::Skip` to contain the target offset instead of the bytecode.
[#479](https://github.com/gimli-rs/gimli/pull/479)

* Changed `write::Expression` to support references. Existing users can convert to use `Expression::raw`.
[#479](https://github.com/gimli-rs/gimli/pull/479)

* Replaced `write::AttributeValue::AnyUnitEntryRef` with `DebugInfoRef`.
Renamed `write::AttributeValue::ThisUnitEntryRef` to `UnitRef`.
[#479](https://github.com/gimli-rs/gimli/pull/479)

* Added more optional features: `endian-reader` and `fallible-iterator`.
[#495](https://github.com/gimli-rs/gimli/pull/495)
[#498](https://github.com/gimli-rs/gimli/pull/498)

### Added

* Added `read::Expression::operations`
[#479](https://github.com/gimli-rs/gimli/pull/479)

### Fixed

* Fixed newlines in `dwarfdump` example.
[#470](https://github.com/gimli-rs/gimli/pull/470)

* Ignore zero terminators when reading `.debug_frame` sections.
[#486](https://github.com/gimli-rs/gimli/pull/486)

* Increase the number of CFI register rules supported by `read::UnwindContext`.
[#487](https://github.com/gimli-rs/gimli/pull/487)

* Fixed version handling and return register encoding when reading `.eh_frame` sections.
[#493](https://github.com/gimli-rs/gimli/pull/493)

### Changed

* Added `EhFrame` and `DebugFrame` to `write::Sections`.
[#492](https://github.com/gimli-rs/gimli/pull/492)

* Improved performance of `write::LineProgram::generate_row`.
[#476](https://github.com/gimli-rs/gimli/pull/476)

* Removed use of the `byteorder`, `arrayvec` and `smallvec` crates.
[#494](https://github.com/gimli-rs/gimli/pull/494)
[#496](https://github.com/gimli-rs/gimli/pull/496)
[#497](https://github.com/gimli-rs/gimli/pull/497)

--------------------------------------------------------------------------------

## 0.20.0

Released 2020/01/11.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
@@ -1,14 +1,14 @@
[package]
name = "gimli"
version = "0.21.0"
authors = ["Nick Fitzgerald <fitzgen@gmail.com>", "Philip Craig <philipjcraig@gmail.com>"]
categories = ["development-tools::debugging", "development-tools::profiling", "parser-implementations"]
description = "A library for reading and writing the DWARF debugging format."
documentation = "https://docs.rs/gimli"
keywords = ["DWARF", "debug", "ELF", "eh_frame"]
license = "Apache-2.0/MIT"
name = "gimli"
readme = "./README.md"
repository = "https://github.com/gimli-rs/gimli"
version = "0.20.0"
exclude = ["/ci/*", "/releases/*", "/.travis.yml"]
edition = "2018"

Expand All @@ -26,7 +26,7 @@ crossbeam = "0.7.1"
getopts = "0.2"
memmap = "0.7"
num_cpus = "1"
object = "0.18"
object = "0.19"
rayon = "1.0"
regex = "1"
test-assembler = "0.1.3"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -30,7 +30,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
gimli = "0.20.0"
gimli = "0.21.0"
```

The minimum supported Rust version is 1.38.0.
Expand Down
14 changes: 5 additions & 9 deletions examples/dwarfdump.rs
Expand Up @@ -3,7 +3,7 @@

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

fn register_name_none(_: gimli::Register) -> Option<&'static str> {
None
}
let arch_register_name = match file.architecture() {
target_lexicon::Architecture::Arm(_) | target_lexicon::Architecture::Aarch64(_) => {
gimli::Arm::register_name
}
target_lexicon::Architecture::I386
| target_lexicon::Architecture::I586
| target_lexicon::Architecture::I686 => gimli::X86::register_name,
target_lexicon::Architecture::X86_64 => gimli::X86_64::register_name,
object::Architecture::Arm | object::Architecture::Aarch64 => gimli::Arm::register_name,
object::Architecture::I386 => gimli::X86::register_name,
object::Architecture::X86_64 => gimli::X86_64::register_name,
_ => register_name_none,
};
let register_name = |register| match arch_register_name(register) {
Expand Down

0 comments on commit 73c43d4

Please sign in to comment.