Fixup GDB

This commit is contained in:
Elad 2024-12-24 16:02:29 +02:00
parent d376ba5994
commit a2d5b5a0e2
2 changed files with 3 additions and 2 deletions

View file

@ -587,7 +587,7 @@ bool gdb_thread::cmd_thread_info(gdb_cmd&)
bool gdb_thread::cmd_current_thread(gdb_cmd&)
{
return send_cmd_ack(selected_thread && selected_thread->state.none_of(cpu_flag::exit) ? "" : ("QC" + u64_to_padded_hex(selected_thread->id)));
return send_cmd_ack(selected_thread && selected_thread->state.none_of(cpu_flag::exit) ? ("QC" + u64_to_padded_hex(selected_thread->id)) : "");
}
bool gdb_thread::cmd_read_register(gdb_cmd& cmd)
@ -733,7 +733,7 @@ bool gdb_thread::cmd_read_all_registers(gdb_cmd&)
return send_cmd_ack(result);
}
GDB.warning("Unimplemented thread type %d.", selected_thread ->id_type());
GDB.warning("Unimplemented thread type %d.", selected_thread->id_type());
return send_cmd_ack("");
}

View file

@ -372,6 +372,7 @@ namespace stx
{
// Reset, probably a new utils::serial object
s_tls_call_count = 1;
s_tls_object_name = "none"sv;
}
s_tls_current_pos = ar.pos;