File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ pub struct BacktraceFrame {
52
52
enum Frame {
53
53
Raw ( :: Frame ) ,
54
54
#[ allow( dead_code) ]
55
- Deserialized { ip : usize , symbol_address : usize } ,
55
+ Deserialized {
56
+ ip : usize ,
57
+ symbol_address : usize ,
58
+ } ,
56
59
}
57
60
58
61
impl Frame {
@@ -155,23 +158,15 @@ impl Backtrace {
155
158
}
156
159
157
160
fn create ( ip : usize ) -> Backtrace {
158
- let ip_lo = ip;
159
- let ip_hi = ip + 128 ;
160
-
161
161
let mut frames = Vec :: new ( ) ;
162
162
let mut actual_start_index = None ;
163
163
trace ( |frame| {
164
- let ip = frame. ip ( ) as usize ;
165
164
frames. push ( BacktraceFrame {
166
165
frame : Frame :: Raw ( frame. clone ( ) ) ,
167
166
symbols : None ,
168
167
} ) ;
169
168
170
- if cfg ! ( not( all( target_os = "windows" , target_arch = "x86" ) ) )
171
- && ip >= ip_lo
172
- && ip <= ip_hi
173
- && actual_start_index. is_none ( )
174
- {
169
+ if frame. symbol_address ( ) as usize == ip && actual_start_index. is_none ( ) {
175
170
actual_start_index = Some ( frames. len ( ) ) ;
176
171
}
177
172
true
You can’t perform that action at this time.
0 commit comments