summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-06-24 20:02:56 +0000
committerEd Maste <emaste@freebsd.org>2015-06-24 20:02:56 +0000
commita681ea25ede8ce8b65cb6dbc1742406bbaf88afb (patch)
treef05ee96550f6697a1f81fd7ed406c16b424a69a2 /lldb/source
parent6bf322101bebac03b63fb068fcd3158f795bcee3 (diff)
downloadbcm5719-llvm-a681ea25ede8ce8b65cb6dbc1742406bbaf88afb.tar.gz
bcm5719-llvm-a681ea25ede8ce8b65cb6dbc1742406bbaf88afb.zip
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
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp b/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
index 64e394e2e19..28bca091614 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;
OpenPOWER on IntegriCloud