Permalink
Browse files
Debugger: Fix long disassemblies
- Loading branch information...
Showing
with
3 additions
and
3 deletions.
-
+1
−1
src/arm/debugger/cli-debugger.c
-
+1
−1
src/arm/decoder.c
-
+1
−1
src/lr35902/decoder.c
|
|
@@ -93,7 +93,7 @@ static void _disassembleMode(struct CLIDebugger* debugger, struct CLIDebugVector |
|
|
|
|
|
static inline uint32_t _printLine(struct CLIDebugger* debugger, uint32_t address, enum ExecutionMode mode) {
|
|
|
struct CLIDebuggerBackend* be = debugger->backend;
|
|
|
- char disassembly[48];
|
|
|
+ char disassembly[64];
|
|
|
struct ARMInstructionInfo info;
|
|
|
be->printf(be, "%08X: ", address);
|
|
|
if (mode == MODE_ARM) {
|
|
|
|
|
|
@@ -8,7 +8,7 @@ |
|
|
#include <mgba/internal/arm/decoder-inlines.h>
|
|
|
|
|
|
#define ADVANCE(AMOUNT) \
|
|
|
- if (AMOUNT > blen) { \
|
|
|
+ if (AMOUNT >= blen) { \
|
|
|
buffer[blen - 1] = '\0'; \
|
|
|
return total; \
|
|
|
} \
|
|
|
|
|
|
@@ -409,7 +409,7 @@ size_t LR35902Decode(uint8_t opcode, struct LR35902InstructionInfo* info) { |
|
|
}
|
|
|
|
|
|
#define ADVANCE(AMOUNT) \
|
|
|
- if (AMOUNT > blen) { \
|
|
|
+ if (AMOUNT >= blen) { \
|
|
|
buffer[blen - 1] = '\0'; \
|
|
|
return total; \
|
|
|
} \
|
|
|
|
0 comments on commit
ee3969a