Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #655 from lioncash/crashes
Fix two possible crashes related to the debugger.
  • Loading branch information
Parlane committed Jul 23, 2014
2 parents 257d2a6 + 2984259 commit 008b907
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Core/PowerPC/PowerPC.cpp
Expand Up @@ -30,7 +30,7 @@ namespace PowerPC

// STATE_TO_SAVE
PowerPCState GC_ALIGNED16(ppcState);
static volatile CPUState state = CPU_STEPPING;
static volatile CPUState state = CPU_POWERDOWN;

Interpreter * const interpreter = Interpreter::getInstance();
static CoreMode mode;
Expand Down
6 changes: 6 additions & 0 deletions Source/Core/DolphinWX/Debugger/MemoryWindow.cpp
Expand Up @@ -160,6 +160,12 @@ void CMemoryWindow::JumpToAddress(u32 _Address)

void CMemoryWindow::SetMemoryValue(wxCommandEvent& event)
{
if (!Memory::IsInitialized())
{
PanicAlertT("Cannot set uninitialized memory.");
return;
}

std::string str_addr = WxStrToStr(addrbox->GetValue());
std::string str_val = WxStrToStr(valbox->GetValue());
u32 addr;
Expand Down

0 comments on commit 008b907

Please sign in to comment.