Skip to content

Commit

Permalink
[lldb] Set correct register number for cpsr (GENERIC_REGNUM_FLAGS)
Browse files Browse the repository at this point in the history
Report the correct register number (GENERIC_REGNUM_FLAGS) for cpsr. This
fixes TestLldbGdbServer.py on Apple Silicon.

Differential revision: https://reviews.llvm.org/D126076
  • Loading branch information
JDevlieghere committed May 20, 2022
1 parent 8d3894f commit a1cf154
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1643,7 +1643,7 @@ const DNBRegisterInfo DNBArchMachARM64::g_gpr_registers[] = {
// used for
// userland debugging.
{e_regSetGPR, gpr_cpsr, "cpsr", "flags", Uint, Hex, 4,
GPR_OFFSET_NAME(cpsr), dwarf_elr_mode, dwarf_elr_mode, INVALID_NUB_REGNUM,
GPR_OFFSET_NAME(cpsr), dwarf_elr_mode, dwarf_elr_mode, GENERIC_REGNUM_FLAGS,
debugserver_gpr_cpsr, NULL, NULL},

DEFINE_PSEUDO_GPR_IDX(0, w0),
Expand Down

0 comments on commit a1cf154

Please sign in to comment.