From: Ed Maste Date: Wed, 24 Jun 2015 20:02:56 +0000 (+0000) Subject: Reduce FreeBSD log spam X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a681ea25ede8ce8b65cb6dbc1742406bbaf88afb;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp index 64e394e..28bca09 100644 --- a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp +++ b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp @@ -108,10 +108,8 @@ PtraceWrapper(int req, lldb::pid_t pid, void *addr, int data, if (req == PT_GETREGS) { struct reg *r = (struct reg *) addr; - log->Printf("PT_GETREGS: ip=0x%lx", r->r_rip); - log->Printf("PT_GETREGS: sp=0x%lx", r->r_rsp); - log->Printf("PT_GETREGS: bp=0x%lx", r->r_rbp); - log->Printf("PT_GETREGS: ax=0x%lx", r->r_rax); + log->Printf("PT_GETREGS: rip=0x%lx rsp=0x%lx rbp=0x%lx rax=0x%lx", + r->r_rip, r->r_rsp, r->r_rbp, r->r_rax); } if (req == PT_GETDBREGS || req == PT_SETDBREGS) { struct dbreg *r = (struct dbreg *) addr;