Improve a couple of user/debug messages. (#763)
* gdb_server: Improve info message. Add target name and state to "Not running when halt was requested" message. Change-Id: Ic84e9a884b57caa270cfee0ca6fa6a0dd8e5d2bd Signed-off-by: Tim Newsome <tim@sifive.com> * rtos/hwthread: Nicer debug message in hwthread_update_threads() Change-Id: Ia5931a772476a2ae186ed87cd70d7e4be2f196fb Signed-off-by: Tim Newsome <tim@sifive.com> Signed-off-by: Tim Newsome <tim@sifive.com>
This commit is contained in:
parent
f59bb72fde
commit
57dbcb1d02
|
@ -211,7 +211,7 @@ static int hwthread_update_threads(struct rtos *rtos)
|
||||||
else
|
else
|
||||||
rtos->current_thread = threadid_from_target(target);
|
rtos->current_thread = threadid_from_target(target);
|
||||||
|
|
||||||
LOG_DEBUG("%s current_thread=%i", __func__, (int)rtos->current_thread);
|
LOG_DEBUG("current_thread=%i, threads_found=%d", (int)rtos->current_thread, threads_found);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3736,7 +3736,8 @@ static int gdb_input_inner(struct connection *connection)
|
||||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||||
gdb_con->ctrl_c = false;
|
gdb_con->ctrl_c = false;
|
||||||
} else {
|
} else {
|
||||||
LOG_INFO("The target is not running when halt was requested, stopping GDB.");
|
LOG_TARGET_INFO(target, "Not running when halt was requested, stopping GDB. (state=%d)",
|
||||||
|
target->state);
|
||||||
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
target_call_event_callbacks(target, TARGET_EVENT_GDB_HALT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue