Merge "Updated non-ARM archs to reflect logging changes."

This commit is contained in:
Elliott Hughes 2014-06-19 18:36:16 +00:00 committed by Gerrit Code Review
commit 030ba83c28
4 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) {
io.iov_len = sizeof(regs);
if (ptrace(PTRACE_GETREGSET, tid, (void*)NT_PRSTATUS, &io) == -1) {
LOG_ERROR("%s: ptrace failed to get registers: %s\n",
_LOG(log, logtype::ERROR, "%s: ptrace failed to get registers: %s\n",
__func__, strerror(errno));
return;
}
@ -80,7 +80,7 @@ void dump_registers(log_t* log, pid_t tid) {
io.iov_len = sizeof(r);
if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRSTATUS, (void*) &io) == -1) {
LOG_ERROR("ptrace error: %s\n", strerror(errno));
_LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno));
return;
}
@ -105,7 +105,7 @@ void dump_registers(log_t* log, pid_t tid) {
io.iov_len = sizeof(f);
if (ptrace(PTRACE_GETREGSET, tid, (void*) NT_PRFPREG, (void*) &io) == -1) {
LOG_ERROR("ptrace error: %s\n", strerror(errno));
_LOG(log, logtype::ERROR, "ptrace error: %s\n", strerror(errno));
return;
}

View File

@ -87,7 +87,7 @@ void dump_memory_and_code(log_t* log, pid_t tid) {
void dump_registers(log_t* log, pid_t tid) {
pt_regs_mips_t r;
if(ptrace(PTRACE_GETREGS, tid, 0, &r)) {
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
return;
}

View File

@ -31,7 +31,7 @@ void dump_memory_and_code(log_t*, pid_t) {
void dump_registers(log_t* log, pid_t tid) {
struct pt_regs r;
if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
return;
}
_LOG(log, logtype::REGISTERS, " eax %08lx ebx %08lx ecx %08lx edx %08lx\n",

View File

@ -33,7 +33,7 @@ void dump_memory_and_code(log_t*, pid_t) {
void dump_registers(log_t* log, pid_t tid) {
struct user_regs_struct r;
if (ptrace(PTRACE_GETREGS, tid, 0, &r) == -1) {
LOG_ERROR("cannot get registers: %s\n", strerror(errno));
_LOG(log, logtype::ERROR, "cannot get registers: %s\n", strerror(errno));
return;
}
_LOG(log, logtype::REGISTERS, " rax %016lx rbx %016lx rcx %016lx rdx %016lx\n",