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;
|
print count($xmlFiles) . ' target descriptions files found in ' . TDF_DIR_PATH . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
$targetFamiliesByArch = [
|
$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@"}}';
|
const MAP_ENTRY_TEMPLATE = '{"@CONFIG_VALUE@", {"@TARGET_NAME@", "@CONFIG_VALUE@", @TARGET_FAMILY@, "@TDF_PATH@"}}';
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ namespace DebugServer
|
|||||||
{
|
{
|
||||||
"avr-gdb-rsp",
|
"avr-gdb-rsp",
|
||||||
[this] () -> std::unique_ptr<ServerInterface> {
|
[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.");
|
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() {
|
TargetDescriptor Avr8::getDescriptor() {
|
||||||
auto descriptor = TargetDescriptor(
|
auto descriptor = TargetDescriptor(
|
||||||
this->signature.toHex(),
|
this->signature.toHex(),
|
||||||
TargetFamily::AVR8,
|
TargetFamily::AVR_8,
|
||||||
this->name,
|
this->name,
|
||||||
"Microchip",
|
"Microchip",
|
||||||
this->targetMemoryDescriptorsByType,
|
this->targetMemoryDescriptorsByType,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Targets
|
|||||||
{
|
{
|
||||||
enum class TargetFamily: std::uint8_t
|
enum class TargetFamily: std::uint8_t
|
||||||
{
|
{
|
||||||
AVR8,
|
AVR_8,
|
||||||
RISC_V,
|
RISC_V,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user