summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Lucien Murray-Pitts <lucienmp_antispam@yahoo.com>2020-11-07 06:57:56 +0900
committer GitHub <noreply@github.com>2020-11-07 08:57:56 +1100
commit1b9b9c9509bcafde50314c0e45c614806861ef66 (patch)
tree507ca71b11b15ab42f7a331e0c5b2fd20439f441
parent4493d92a2c74b2a53f85523a5e49c968514603df (diff)
Add "n2a03" (6502 CPU clone) to gdbstub for NES, and swapped 6502 PC/SP to SP/PC (#7440)
-rw-r--r--src/osd/modules/debugger/debuggdbstub.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osd/modules/debugger/debuggdbstub.cpp b/src/osd/modules/debugger/debuggdbstub.cpp
index 8ccfc7bfbc9..1dce80aaf52 100644
--- a/src/osd/modules/debugger/debuggdbstub.cpp
+++ b/src/osd/modules/debugger/debuggdbstub.cpp
@@ -281,8 +281,8 @@ static const gdb_register_map gdb_register_map_m6502 =
{ "X", "x", false, TYPE_INT },
{ "Y", "y", false, TYPE_INT },
{ "P", "p", false, TYPE_INT },
- { "PC", "pc", true, TYPE_CODE_POINTER },
{ "SP", "sp", true, TYPE_DATA_POINTER },
+ { "PC", "pc", true, TYPE_CODE_POINTER },
}
};
@@ -315,6 +315,7 @@ static const std::map<std::string, const gdb_register_map &> gdb_register_maps =
{ "m68020pmmu", gdb_register_map_m68020pmmu },
{ "z80", gdb_register_map_z80 },
{ "m6502", gdb_register_map_m6502 },
+ { "n2a03", gdb_register_map_m6502 },
{ "m6809", gdb_register_map_m6809 },
};