Tidying
This commit is contained in:
@@ -147,8 +147,8 @@ void GdbRspDebugServer::handleGdbPacket(CommandPackets::WriteRegister& packet) {
|
|||||||
try {
|
try {
|
||||||
auto registerDescriptor = this->getRegisterDescriptorFromNumber(packet.registerNumber);
|
auto registerDescriptor = this->getRegisterDescriptorFromNumber(packet.registerNumber);
|
||||||
this->targetControllerConsole.writeRegisters({
|
this->targetControllerConsole.writeRegisters({
|
||||||
TargetRegister(registerDescriptor, packet.registerValue)
|
TargetRegister(registerDescriptor, packet.registerValue)
|
||||||
});
|
});
|
||||||
this->clientConnection->writePacket(ResponsePacket({'O', 'K'}));
|
this->clientConnection->writePacket(ResponsePacket({'O', 'K'}));
|
||||||
|
|
||||||
} catch (const Exception& exception) {
|
} catch (const Exception& exception) {
|
||||||
|
|||||||
@@ -1,18 +1,7 @@
|
|||||||
#include "ByteAddressContainer.hpp"
|
#include "ByteAddressContainer.hpp"
|
||||||
|
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QTableWidget>
|
|
||||||
#include <QScrollBar>
|
|
||||||
#include <QPainter>
|
|
||||||
#include <cmath>
|
|
||||||
|
|
||||||
#include "src/Logger/Logger.hpp"
|
|
||||||
|
|
||||||
using namespace Bloom::Widgets;
|
using namespace Bloom::Widgets;
|
||||||
|
|
||||||
ByteAddressContainer::ByteAddressContainer() {
|
|
||||||
}
|
|
||||||
|
|
||||||
void ByteAddressContainer::adjustAddressLabels(
|
void ByteAddressContainer::adjustAddressLabels(
|
||||||
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
const std::map<std::size_t, std::vector<ByteItem*>>& byteItemsByRowIndex
|
||||||
) {
|
) {
|
||||||
@@ -56,8 +45,6 @@ void ByteAddressContainer::adjustAddressLabels(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Logger::error("Done with rows: " + std::to_string(this->addressItemsByRowIndex.size()));
|
|
||||||
|
|
||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,12 +2,10 @@
|
|||||||
|
|
||||||
#include <QGraphicsItem>
|
#include <QGraphicsItem>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <QEvent>
|
#include <QPainter>
|
||||||
#include <QGraphicsScene>
|
#include <QGraphicsScene>
|
||||||
#include <QFont>
|
|
||||||
#include <QColor>
|
|
||||||
#include <optional>
|
|
||||||
#include <map>
|
#include <map>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include "ByteItem.hpp"
|
#include "ByteItem.hpp"
|
||||||
#include "ByteAddressItem.hpp"
|
#include "ByteAddressItem.hpp"
|
||||||
@@ -19,7 +17,7 @@ namespace Bloom::Widgets
|
|||||||
public:
|
public:
|
||||||
static constexpr int WIDTH = 85;
|
static constexpr int WIDTH = 85;
|
||||||
|
|
||||||
ByteAddressContainer();
|
ByteAddressContainer() = default;
|
||||||
|
|
||||||
[[nodiscard]] QRectF boundingRect() const override {
|
[[nodiscard]] QRectF boundingRect() const override {
|
||||||
return QRectF(
|
return QRectF(
|
||||||
|
|||||||
Reference in New Issue
Block a user