Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in PrintCallstack caused by trying to use MMIO #111

Merged
merged 1 commit into from Mar 8, 2014

Conversation

Parlane
Copy link
Member

@Parlane Parlane commented Feb 27, 2014

Also tidy up methods in Debugger_SymbolMap.cpp

u32 addr = Memory::ReadUnchecked_U32(PowerPC::ppcState.gpr[1]); // SP

// Walk the stack chain
while ((addr != 0xFFFFFFFF) &&

This comment was marked as off-topic.

@BhaaLseN
Copy link
Member

BhaaLseN commented Mar 2, 2014

I'm not terribly happy with the code duplication of the "walk stack chain" loop there; but its a bit hard to review on GH. Maybe we can pull that out into a helper method or smth?

@shuffle2
Copy link
Contributor

shuffle2 commented Mar 7, 2014

Agree with @BhaaLseN , looks kind of messy.
And agree with @delroth....I am guessing there is actually a canonical stack-end-token that the sdk uses...iirc it was either 0 or a magic value like deadbeef?

Also...removing the printfs in this file would be nice.

bool addr_is_bottom = std::find(std::begin(stack_bottom_indicators),
std::end(stack_bottom_indicators), addr)
!= std::end(stack_bottom_indicators);
return addr_is_bottom || !Memory::IsRAMAddress(addr);

This comment was marked as off-topic.

This comment was marked as off-topic.

Also tidy up methods in Debugger_SymbolMap.cpp
delroth added a commit that referenced this pull request Mar 8, 2014
Fix bug in PrintCallstack caused by trying to use MMIO
@delroth delroth merged commit 9f931ae into dolphin-emu:master Mar 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants