File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -42,23 +42,21 @@ pub struct MemEvents {
42
42
#[ cfg_attr( target_os = "linux" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
43
43
#[ derive( Debug ) ]
44
44
pub enum AccessEvent {
45
- /// A read may have occurred on no more than the specified address range.
45
+ /// A read occurred on this memory range.
46
46
Read ( AccessRange ) ,
47
- /// A write may have occurred on no more than the specified address range.
47
+ /// A read occurred on this memory range.
48
48
Write ( AccessRange ) ,
49
49
}
50
50
51
- /// The actual size of a performed access, bounded by size .
51
+ /// The memory touched by a given access.
52
52
#[ allow( dead_code) ]
53
53
#[ cfg_attr( target_os = "linux" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
54
54
#[ derive( Clone , Debug ) ]
55
55
pub struct AccessRange {
56
56
/// The base address in memory where an access occurred.
57
57
pub addr : usize ,
58
- /// The smallest size this access could have been.
59
- pub min_size : usize ,
60
- /// The largest size this access could have been.
61
- pub max_size : usize ,
58
+ /// The number of bytes affected from the base.
59
+ pub size : usize ,
62
60
}
63
61
64
62
impl < ' tcx > EvalContextExtPriv < ' tcx > for crate :: MiriInterpCx < ' tcx > { }
Original file line number Diff line number Diff line change @@ -410,8 +410,7 @@ fn handle_segfault(
410
410
arch:: x86:: X86OperandType :: Mem ( _) => {
411
411
let push = AccessRange {
412
412
addr,
413
- min_size : x86_operand. size . into ( ) ,
414
- max_size : x86_operand. size . into ( ) ,
413
+ size : x86_operand. size . into ( ) ,
415
414
} ;
416
415
// It's called a "RegAccessType" but it also applies to memory
417
416
let acc_ty = x86_operand. access . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments