gdbstub: store register indexes in an enum rather than const u32.

This fixes a tautological-compare warning in src/core/gdbstub/gdbstub.cpp line
472 because `R0_REGISTER` is 0 and `id` is unsigned.
This commit is contained in:
Paul Dettorer Hervot 2015-12-09 15:58:18 +01:00 committed by Paul "Dettorer" Hervot
parent e3905cdfd8
commit b77042a920

View File

@ -55,10 +55,12 @@ const u32 SIGTERM = 15;
const u32 MSG_WAITALL = 8; const u32 MSG_WAITALL = 8;
#endif #endif
const u32 R0_REGISTER = 0; enum GDBRegister {
const u32 R15_REGISTER = 15; R0_REGISTER = 0,
const u32 CPSR_REGISTER = 25; R15_REGISTER = 15,
const u32 FPSCR_REGISTER = 58; CPSR_REGISTER = 25,
FPSCR_REGISTER = 58
};
namespace GDBStub { namespace GDBStub {