mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #655 from lioncash/crashes
Fix two possible crashes related to the debugger.
This commit is contained in:
@ -30,7 +30,7 @@ namespace PowerPC
|
|||||||
|
|
||||||
// STATE_TO_SAVE
|
// STATE_TO_SAVE
|
||||||
PowerPCState GC_ALIGNED16(ppcState);
|
PowerPCState GC_ALIGNED16(ppcState);
|
||||||
static volatile CPUState state = CPU_STEPPING;
|
static volatile CPUState state = CPU_POWERDOWN;
|
||||||
|
|
||||||
Interpreter * const interpreter = Interpreter::getInstance();
|
Interpreter * const interpreter = Interpreter::getInstance();
|
||||||
static CoreMode mode;
|
static CoreMode mode;
|
||||||
|
@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)
|
|||||||
|
|
||||||
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
|
if (!Memory::IsInitialized())
|
||||||
|
{
|
||||||
|
PanicAlertT("Cannot set uninitialized memory.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
std::string str_addr = WxStrToStr(addrbox->GetValue());
|
||||||
std::string str_val = WxStrToStr(valbox->GetValue());
|
std::string str_val = WxStrToStr(valbox->GetValue());
|
||||||
u32 addr;
|
u32 addr;
|
||||||
|
Reference in New Issue
Block a user