Merge pull request #2168 from Happy-yappH/dasm_virtual_space

Make debugger 'dasm' command able to traverse virtual spaces with
This commit is contained in:
R. Belmont 2017-03-29 16:20:32 -04:00 committed by GitHub
commit d287a4acbf

View File

@ -2459,6 +2459,7 @@ void debugger_commands::execute_dasm(int ref, const std::vector<std::string> &pa
/* make sure we can translate the address */
tempaddr = pcbyte;
if (space->device().memory().translate(space->spacenum(), TRANSLATE_FETCH_DEBUG, tempaddr))
{
{
u8 opbuf[64], argbuf[64];
@ -2484,6 +2485,12 @@ void debugger_commands::execute_dasm(int ref, const std::vector<std::string> &pa
stream_format(output, "%*s", byteswidth - (output.tellp() - startdex), "");
stream_format(output, " ");
}
}
else
{
disasm << "<unmapped>";
i += minbytes;
}
/* add the disassembly */
disasm.put('\0');