forked from OSchip/llvm-project
Reduce FreeBSD log spam
The values of four important registers are included in logs for ptrace PT_GETREGS. Put all four on the same line for a more compact log. Also use the proper 64-bit register names. llvm-svn: 240581
This commit is contained in:
parent
6bf322101b
commit
a681ea25ed
|
@ -108,10 +108,8 @@ PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data,
|
||||||
if (req == PT_GETREGS) {
|
if (req == PT_GETREGS) {
|
||||||
struct reg *r = (struct reg *) addr;
|
struct reg *r = (struct reg *) addr;
|
||||||
|
|
||||||
log->Printf("PT_GETREGS: ip=0x%lx", r->r_rip);
|
log->Printf("PT_GETREGS: rip=0x%lx rsp=0x%lx rbp=0x%lx rax=0x%lx",
|
||||||
log->Printf("PT_GETREGS: sp=0x%lx", r->r_rsp);
|
r->r_rip, r->r_rsp, r->r_rbp, r->r_rax);
|
||||||
log->Printf("PT_GETREGS: bp=0x%lx", r->r_rbp);
|
|
||||||
log->Printf("PT_GETREGS: ax=0x%lx", r->r_rax);
|
|
||||||
}
|
}
|
||||||
if (req == PT_GETDBREGS || req == PT_SETDBREGS) {
|
if (req == PT_GETDBREGS || req == PT_SETDBREGS) {
|
||||||
struct dbreg *r = (struct dbreg *) addr;
|
struct dbreg *r = (struct dbreg *) addr;
|
||||||
|
|
Loading…
Reference in New Issue