From eac600e1b6dfbfc0e87956759957aa22000161f1 Mon Sep 17 00:00:00 2001 From: Lars Rademacher Date: Tue, 31 Dec 2013 16:21:10 +0100 Subject: [PATCH] openocd: silence debug-messages Change-Id: I10d1ad484871cda5dba47f75b0d310ed441f701a --- debuggers/openocd/openocd_wrapper.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/debuggers/openocd/openocd_wrapper.cc b/debuggers/openocd/openocd_wrapper.cc index 5c06658f..d8781922 100644 --- a/debuggers/openocd/openocd_wrapper.cc +++ b/debuggers/openocd/openocd_wrapper.cc @@ -395,7 +395,8 @@ int main(int argc, char *argv[]) if (mmu_recovery_needed) { // Check for correct pc if (pc != mmu_recovery_bp.address) { - LOG << "FATAL ERROR: Something went wrong while handling mmu event" << endl; + LOG << "FATAL ERROR: Something went wrong while handling mmu event" << + hex << pc << " " << mmu_recovery_bp.address << endl; exit(-1); } @@ -500,6 +501,7 @@ int main(int argc, char *argv[]) // ToDo: Check for handling by experiment (reboot) and throw error otherwise } else { freeze_timers(); + LOG << "BP-EVENT " << hex << pc << dec << endl; fail::simulator.onBreakpoint(NULL, pc, fail::ANY_ADDR); unfreeze_timers(); } @@ -1179,7 +1181,8 @@ void oocdw_read_from_memory(uint32_t address, uint32_t chunk_size, uint32_t chunk_num, uint8_t *data) { if (target_read_memory(target_a9, address, chunk_size, chunk_num, data)) { - LOG << "FATAL ERROR: Reading from memory failed." << endl; + LOG << "FATAL ERROR: Reading from memory failed. Addr: " << hex << address + << dec << " chunk-size: " << chunk_size << " chunk_num: " << chunk_num << endl; exit(-1); } } @@ -1247,6 +1250,8 @@ static void update_timers() uint64_t useconds_delta = t_diff.tv_sec * 1000000 + t_diff.tv_usec; if (timers[i].timeToFire <= useconds_delta) { + LOG << "TIMER EVENT " << useconds_delta << " > " <