Tidying
This commit is contained in:
@@ -40,7 +40,7 @@ $xmlFiles = TargetDescriptionFiles\Factory::findXmlFiles(TDF_DIR_PATH);
|
||||
print count($xmlFiles) . ' target descriptions files found in ' . TDF_DIR_PATH . PHP_EOL . PHP_EOL;
|
||||
|
||||
$targetFamiliesByArch = [
|
||||
TargetDescriptionFile::ARCHITECTURE_AVR8 => 'TargetFamily::AVR8',
|
||||
TargetDescriptionFile::ARCHITECTURE_AVR8 => 'TargetFamily::AVR_8',
|
||||
];
|
||||
|
||||
const MAP_ENTRY_TEMPLATE = '{"@CONFIG_VALUE@", {"@TARGET_NAME@", "@CONFIG_VALUE@", @TARGET_FAMILY@, "@TDF_PATH@"}}';
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace DebugServer
|
||||
{
|
||||
"avr-gdb-rsp",
|
||||
[this] () -> std::unique_ptr<ServerInterface> {
|
||||
if (this->targetDescriptor.family != Targets::TargetFamily::AVR8) {
|
||||
if (this->targetDescriptor.family != Targets::TargetFamily::AVR_8) {
|
||||
throw Exceptions::Exception("The AVR GDB RSP server is only compatible with AVR8 targets.");
|
||||
}
|
||||
|
||||
|
||||
@@ -268,7 +268,7 @@ namespace Targets::Microchip::Avr::Avr8Bit
|
||||
TargetDescriptor Avr8::getDescriptor() {
|
||||
auto descriptor = TargetDescriptor(
|
||||
this->signature.toHex(),
|
||||
TargetFamily::AVR8,
|
||||
TargetFamily::AVR_8,
|
||||
this->name,
|
||||
"Microchip",
|
||||
this->targetMemoryDescriptorsByType,
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace Targets
|
||||
{
|
||||
enum class TargetFamily: std::uint8_t
|
||||
{
|
||||
AVR8,
|
||||
AVR_8,
|
||||
RISC_V,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user