Add m6809 support for gdb remote debugger.

This commit is contained in:
Gustavo Del Dago 2020-11-06 10:36:09 -03:00 committed by Vas Crabb
parent 2cf89ee8a8
commit 4493d92a2c

View File

@ -286,6 +286,26 @@ static const gdb_register_map gdb_register_map_m6502 =
}
};
//-------------------------------------------------------------------------
static const gdb_register_map gdb_register_map_m6809 =
{
"m6809",
"mame.m6809",
{
{ "A", "a", false, TYPE_INT },
{ "B", "b", false, TYPE_INT },
{ "D", "d", false, TYPE_INT },
{ "X", "x", false, TYPE_INT },
{ "Y", "y", false, TYPE_INT },
{ "U", "u", true, TYPE_DATA_POINTER },
{ "PC", "pc", true, TYPE_CODE_POINTER },
{ "S", "s", true, TYPE_DATA_POINTER },
{ "CC", "cc", false, TYPE_INT }, // TODO describe bitfield
{ "DP", "dp", false, TYPE_INT },
}
};
//-------------------------------------------------------------------------
static const std::map<std::string, const gdb_register_map &> gdb_register_maps = {
{ "i486", gdb_register_map_i486 },
@ -295,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 },
{ "m6809", gdb_register_map_m6809 },
};
//-------------------------------------------------------------------------