File tree 1 file changed +10
-1
lines changed
src/libstd/sys/windows/backtrace
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ fn set_frames<W: StackWalker>(StackWalk: W, frames: &mut [Frame]) -> io::Result<
103
103
frames[ i] = Frame {
104
104
symbol_addr : addr,
105
105
exact_position : addr,
106
- inline_context : 0 ,
106
+ inline_context : frame . get_inline_context ( ) ,
107
107
} ;
108
108
109
109
i += 1
@@ -209,6 +209,7 @@ trait StackFrame {
209
209
fn new ( ) -> Self ;
210
210
fn init ( & mut self , ctx : & c:: CONTEXT ) -> c:: DWORD ;
211
211
fn get_addr ( & self ) -> * const u8 ;
212
+ fn get_inline_context ( & self ) -> u32 ;
212
213
}
213
214
214
215
impl StackFrame for c:: STACKFRAME_EX {
@@ -263,6 +264,10 @@ impl StackFrame for c::STACKFRAME_EX {
263
264
fn get_addr ( & self ) -> * const u8 {
264
265
( self . AddrPC . Offset - 1 ) as * const u8
265
266
}
267
+
268
+ fn get_inline_context ( & self ) -> u32 {
269
+ self . InlineFrameContext
270
+ }
266
271
}
267
272
268
273
impl StackFrame for c:: STACKFRAME64 {
@@ -317,6 +322,10 @@ impl StackFrame for c::STACKFRAME64 {
317
322
fn get_addr ( & self ) -> * const u8 {
318
323
( self . AddrPC . Offset - 1 ) as * const u8
319
324
}
325
+
326
+ fn get_inline_context ( & self ) -> u32 {
327
+ 0
328
+ }
320
329
}
321
330
322
331
enum StackWalkVariant {
You can’t perform that action at this time.
0 commit comments