parent
08d0028061
commit
711e5b16b8
@ -1,31 +0,0 @@
|
|||||||
From 203fe1e00d5d751763e0aaec75f4abe670271b81 Mon Sep 17 00:00:00 2001
|
|
||||||
From: bjorn3 <bjorn3@users.noreply.github.com>
|
|
||||||
Date: Thu, 30 Apr 2020 12:16:46 +0200
|
|
||||||
Subject: [PATCH] Update object
|
|
||||||
|
|
||||||
---
|
|
||||||
src/lib.rs | 7 +++++--
|
|
||||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/lib.rs b/src/lib.rs
|
|
||||||
index c72dffbd036b..0173a26418bc 100644
|
|
||||||
--- a/src/lib.rs
|
|
||||||
+++ b/src/lib.rs
|
|
||||||
@@ -99,9 +99,12 @@ impl Context<gimli::EndianRcSlice<gimli::RunTimeEndian>> {
|
|
||||||
S: gimli::Section<gimli::EndianRcSlice<Endian>>,
|
|
||||||
Endian: gimli::Endianity,
|
|
||||||
{
|
|
||||||
+ use object::ObjectSection;
|
|
||||||
+
|
|
||||||
let data = file
|
|
||||||
- .section_data_by_name(S::section_name())
|
|
||||||
- .unwrap_or(Cow::Borrowed(&[]));
|
|
||||||
+ .section_by_name(S::section_name())
|
|
||||||
+ .and_then(|section| section.data().ok())
|
|
||||||
+ .unwrap_or(&[]);
|
|
||||||
S::from(gimli::EndianRcSlice::new(Rc::from(&*data), endian))
|
|
||||||
}
|
|
||||||
|
|
||||||
--
|
|
||||||
2.26.2
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
|||||||
--- addr2line-0.11.0/Cargo.toml 1970-01-01T00:00:00+00:00
|
|
||||||
+++ addr2line-0.11.0/Cargo.toml 2020-05-05T21:44:40.646878+00:00
|
|
||||||
@@ -63,7 +63,7 @@
|
|
||||||
version = "1"
|
|
||||||
|
|
||||||
[dependencies.object]
|
|
||||||
-version = "0.17"
|
|
||||||
+version = "0.18"
|
|
||||||
features = ["read"]
|
|
||||||
optional = true
|
|
||||||
default-features = false
|
|
@ -1 +1 @@
|
|||||||
SHA512 (addr2line-0.11.0.crate) = 7f4ddbcdb115c483fd012fc0f6229c99e542d9c25e2985ba1b093ff706b5f25d0ed8da994144c28a8fe2bc3337362d39b62bdcfd1ebe3275ebb80f2e4c3e8434
|
SHA512 (addr2line-0.12.0.crate) = aebc4c2c3c87a6fb5e076264dd7abc72fd639a0c1eee0c538a7fcccb3fb97e9f1f0f5c9bbc40678870a1054efa902d7c9e00deada4e4c3293e04476ad3dfe018
|
||||||
|
Loading…
Reference in new issue