diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-08-23 18:54:32 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-23 18:54:32 -0700 |
| commit | 83f773fc64971160c526107da4590c1583eb84cf (patch) | |
| tree | e3c10b765a27d5f1948dac05b80320710f8d1991 /lib/std/debug/Dwarf | |
| parent | 77c09d16f9d992b19bc7cb2d2497f8009e0250ba (diff) | |
| parent | e4a7b15852f1bfa9d4106164e5b7de0f1a877c3a (diff) | |
| download | zig-83f773fc64971160c526107da4590c1583eb84cf.tar.gz zig-83f773fc64971160c526107da4590c1583eb84cf.zip | |
Merge pull request #24960 from ziglang/MemoryAccessor
std.debug: delete MemoryAccessor
Diffstat (limited to 'lib/std/debug/Dwarf')
| -rw-r--r-- | lib/std/debug/Dwarf/expression.zig | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/std/debug/Dwarf/expression.zig b/lib/std/debug/Dwarf/expression.zig index fcbb939171..c123cdb30b 100644 --- a/lib/std/debug/Dwarf/expression.zig +++ b/lib/std/debug/Dwarf/expression.zig @@ -15,8 +15,6 @@ const assert = std.debug.assert; pub const Context = struct { /// The dwarf format of the section this expression is in format: std.dwarf.Format = .@"32", - /// If specified, any addresses will pass through before being accessed - memory_accessor: ?*std.debug.MemoryAccessor = null, /// The compilation unit this expression relates to, if any compile_unit: ?*const std.debug.Dwarf.CompileUnit = null, /// When evaluating a user-presented expression, this is the address of the object being evaluated @@ -465,16 +463,6 @@ pub fn StackMachine(comptime options: Options) type { else => unreachable, }; - if (context.memory_accessor) |memory_accessor| { - if (!switch (size) { - 1 => memory_accessor.load(u8, addr) != null, - 2 => memory_accessor.load(u16, addr) != null, - 4 => memory_accessor.load(u32, addr) != null, - 8 => memory_accessor.load(u64, addr) != null, - else => return error.InvalidExpression, - }) return error.InvalidExpression; - } - const value: addr_type = std.math.cast(addr_type, @as(u64, switch (size) { 1 => @as(*const u8, @ptrFromInt(addr)).*, 2 => @as(*const u16, @ptrFromInt(addr)).*, |
