mirror of
https://github.com/holub/mame
synced 2025-06-10 06:47:18 +03:00
Make debugger 'dasm' command able to traverse virtual spaces with
unmapped holes. Previously, 'dasm' would enter an infinite loop if it hit an unmapped pc, continuing to grow the output file until the program was killed.
This commit is contained in:
parent
5b5ba04f8b
commit
1a65879da1
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user