mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 08:30:41 +00:00
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:
parent
e3905cdfd8
commit
b77042a920
@ -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 {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user