-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lldb-netbsd: Implement unwinding of code that caused interruption
Changes: - porting NativeRegisters on x86 64-bit - fix code reading memory from tracee's address space Trace of the following program: int main(int argc, char **argv) { printf("Hello world!\n"); __asm__ __volatile__("int3;\n"); return 0; } $ lldb (lldb) process connect connect://localhost:1234 Process 21323 stopped * thread #1, stop reason = The signal Stopped (signal) was caught frame #0: 0x00007f7f3c800740 -> 0x7f7f3c800740: subq $0x10, %rsp 0x7f7f3c800744: movq %rsp, %r12 0x7f7f3c800747: pushq %rbx 0x7f7f3c800748: andq $-0x10, %rsp (lldb) c Process 21323 resuming Hello world! Process 21323 stopped * thread #1, stop reason = signal SIGTRAP frame #0: 0x000000000040088a -> 0x40088a: movl $0x0, %eax 0x40088f: leave 0x400890: retq 0x400891: addb %al, (%rax) (lldb) c Process 21323 resuming Process 21323 exited with status = 0 (0x00000000) (lldb) Sponsored by <The NetBSD Foundation>
- Loading branch information
1 parent
547bcaf
commit 8207a0e
Showing
6 changed files
with
143 additions
and
745 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.