diff options
Diffstat (limited to 'src/cli')
| -rw-r--r-- | src/cli/dbg.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cli/dbg.zig b/src/cli/dbg.zig index 5fcf88e..c60bff2 100644 --- a/src/cli/dbg.zig +++ b/src/cli/dbg.zig @@ -24,7 +24,7 @@ pub const usage = \\ watch WHAT [LEN] record a region at every stop: an address or a symbol \\ regs the registers \\ x WHAT [LEN] memory at an address, a symbol or $register (64 bytes) - \\ bt the call chain, by frame pointer + \\ bt the call chain, by the unwind tables or the frame pointer \\ context, ctx everything at once, pwndbg's way: registers followed \\ as pointers, the instructions at the pc, the stack \\ back [N] look N moments back in the recording: regs, x @@ -301,6 +301,11 @@ const Session = struct { mem.s.fetch(mem.m, addr, buf, known[0..buf.len]) catch return 0; return std.mem.indexOfScalar(bool, known[0..buf.len], false) orelse buf.len; } + + /// The program's call frame information, the same now as at any moment. + pub fn cfi(mem: Memory, pc: u64) ?zt.Symbols.Cfi { + return mem.s.d.cfi(pc); + } }; /// The stop the program is at now. |
