mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
Disable exception handling.
Use -fno-exceptions in cmake. On MSVC, enable _HAS_EXCEPTION=0. Cleanup throw/catch from the source. Create yaml.cpp enclave because it needs exception to work. Disable thread_local optimizations in logs.cpp (TODO). Implement cpu_counter for cpu_threads (moved globals).
This commit is contained in:
parent
47bbfdd2aa
commit
04dedb17eb
39 changed files with 421 additions and 437 deletions
|
|
@ -303,21 +303,13 @@ bool gdb_thread::read_cmd(gdb_cmd& out_cmd)
|
|||
{
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
if (try_read_cmd(out_cmd))
|
||||
{
|
||||
if (try_read_cmd(out_cmd))
|
||||
{
|
||||
ack(true);
|
||||
return true;
|
||||
}
|
||||
ack(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
ack(false);
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
GDB.error("Error: %s", e.what());
|
||||
return false;
|
||||
}
|
||||
ack(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -866,7 +858,7 @@ void gdb_thread::operator()()
|
|||
Emu.Pause();
|
||||
}
|
||||
|
||||
try {
|
||||
{
|
||||
char hostbuf[32];
|
||||
inet_ntop(client.sin_family, reinterpret_cast<void*>(&client.sin_addr), hostbuf, 32);
|
||||
GDB.success("Got connection to GDB debug server from %s:%d.", hostbuf, client.sin_port);
|
||||
|
|
@ -905,16 +897,6 @@ void gdb_thread::operator()()
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (const std::runtime_error& e)
|
||||
{
|
||||
if (client_socket != -1)
|
||||
{
|
||||
closesocket(client_socket);
|
||||
client_socket = -1;
|
||||
}
|
||||
|
||||
GDB.error("Error: %s", e.what());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue