From f60b520e4da4d19dc43a5058168e668acdaaee00 Mon Sep 17 00:00:00 2001 From: Tat-Chee Wan (USM) Date: Thu, 24 Mar 2011 12:02:03 +0800 Subject: undo fpscr support as gdb complains that packet reply is too long --- Debugger/debug_stub.S | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Debugger') diff --git a/Debugger/debug_stub.S b/Debugger/debug_stub.S index 3c3670a..55b2183 100644 --- a/Debugger/debug_stub.S +++ b/Debugger/debug_stub.S @@ -853,6 +853,8 @@ _dbg__cmd_GetAllRegs: cmp r3, #REG_PC bls 1b /* process all the registers */ _get_cpsr: +#if 0 + /* GDB was not happy when this was added */ /* Output Dummy FPSCR value */ mov r1, #0 #ifdef __BIG_ENDIAN__ @@ -860,7 +862,7 @@ _get_cpsr: #else bl word2ascii_le /* Convert and put hex chars into Output Message Buffer */ #endif - +#endif mov r1, #REG_CPSR /* Output User CPSR Value last */ bl _dbg_outputOneRegValue /* update output buffer */ @@ -935,7 +937,7 @@ _dbg__proc_setRegister: * */ _dbg__cmd_SetAllRegs: - /* Assumes that the registers are in the sequence R0, R1, ... R15, FPSCR (ignored), CPSR */ + /* Assumes that the registers are in the sequence R0, R1, ... R15, CPSR */ stmfd sp!, {lr} bl __dbg__cmdParamLen /* R0: pointer to parameters in buffer */ teq r1, #CMD_REG_SETALL_PARAMLEN /* Check for correct length */ @@ -948,6 +950,8 @@ _dbg__cmd_SetAllRegs: bls 1b _set_cpsr: +#if 0 + /* GDB was not happy when this was added */ /* Read dummy FPSCR value (ignored) */ #ifdef __BIG_ENDIAN__ bl ascii2word_be @@ -955,7 +959,7 @@ _set_cpsr: bl ascii2word_le #endif mov r0, r1 /* Copy buffer pointer to next parameter to R0 for return value */ - +#endif mov r1, #REG_CPSR /* Use CPSR enum (-1) */ bl _dbg_setOneRegValue /* R0: next parameter address pointer */ ldrb r0, [r0] -- cgit v1.2.3