[LLDB][PPC64] Fixed issues with expedited registers
Summary: - reg_nums were missing the end marker entry - marked FP test to be skipped for ppc64 Reviewers: labath, clayborg Reviewed By: labath, clayborg Subscribers: alexandreyy, lbianc, nemanjai, kbarton Differential Revision: https://reviews.llvm.org/D43767 Patch by Leandro Lupori <leandro.lupori@gmail.com> llvm-svn: 326775
This commit is contained in:
parent
8f46486c65
commit
5e5dd70674
|
@ -125,6 +125,8 @@ class TestGdbRemoteExpeditedRegisters(
|
||||||
self.set_inferior_startup_launch()
|
self.set_inferior_startup_launch()
|
||||||
self.stop_notification_contains_pc_register()
|
self.stop_notification_contains_pc_register()
|
||||||
|
|
||||||
|
# powerpc64 has no FP register
|
||||||
|
@skipIf(triple='^powerpc64')
|
||||||
def stop_notification_contains_fp_register(self):
|
def stop_notification_contains_fp_register(self):
|
||||||
self.stop_notification_contains_generic_register("fp")
|
self.stop_notification_contains_generic_register("fp")
|
||||||
|
|
||||||
|
|
|
@ -50,6 +50,7 @@ static const uint32_t g_gpr_regnums_ppc64le[] = {
|
||||||
gpr_pc_ppc64le, gpr_msr_ppc64le, gpr_origr3_ppc64le, gpr_ctr_ppc64le,
|
gpr_pc_ppc64le, gpr_msr_ppc64le, gpr_origr3_ppc64le, gpr_ctr_ppc64le,
|
||||||
gpr_lr_ppc64le, gpr_xer_ppc64le, gpr_cr_ppc64le, gpr_softe_ppc64le,
|
gpr_lr_ppc64le, gpr_xer_ppc64le, gpr_cr_ppc64le, gpr_softe_ppc64le,
|
||||||
gpr_trap_ppc64le,
|
gpr_trap_ppc64le,
|
||||||
|
LLDB_INVALID_REGNUM // register sets need to end with this flag
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint32_t g_fpr_regnums_ppc64le[] = {
|
static const uint32_t g_fpr_regnums_ppc64le[] = {
|
||||||
|
@ -62,6 +63,7 @@ static const uint32_t g_fpr_regnums_ppc64le[] = {
|
||||||
fpr_f24_ppc64le, fpr_f25_ppc64le, fpr_f26_ppc64le, fpr_f27_ppc64le,
|
fpr_f24_ppc64le, fpr_f25_ppc64le, fpr_f26_ppc64le, fpr_f27_ppc64le,
|
||||||
fpr_f28_ppc64le, fpr_f29_ppc64le, fpr_f30_ppc64le, fpr_f31_ppc64le,
|
fpr_f28_ppc64le, fpr_f29_ppc64le, fpr_f30_ppc64le, fpr_f31_ppc64le,
|
||||||
fpr_fpscr_ppc64le,
|
fpr_fpscr_ppc64le,
|
||||||
|
LLDB_INVALID_REGNUM // register sets need to end with this flag
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint32_t g_vmx_regnums_ppc64le[] = {
|
static const uint32_t g_vmx_regnums_ppc64le[] = {
|
||||||
|
@ -74,6 +76,7 @@ static const uint32_t g_vmx_regnums_ppc64le[] = {
|
||||||
vmx_vr24_ppc64le, vmx_vr25_ppc64le, vmx_vr26_ppc64le, vmx_vr27_ppc64le,
|
vmx_vr24_ppc64le, vmx_vr25_ppc64le, vmx_vr26_ppc64le, vmx_vr27_ppc64le,
|
||||||
vmx_vr28_ppc64le, vmx_vr29_ppc64le, vmx_vr30_ppc64le, vmx_vr31_ppc64le,
|
vmx_vr28_ppc64le, vmx_vr29_ppc64le, vmx_vr30_ppc64le, vmx_vr31_ppc64le,
|
||||||
vmx_vscr_ppc64le, vmx_vrsave_ppc64le,
|
vmx_vscr_ppc64le, vmx_vrsave_ppc64le,
|
||||||
|
LLDB_INVALID_REGNUM // register sets need to end with this flag
|
||||||
};
|
};
|
||||||
|
|
||||||
static const uint32_t g_vsx_regnums_ppc64le[] = {
|
static const uint32_t g_vsx_regnums_ppc64le[] = {
|
||||||
|
@ -93,6 +96,7 @@ static const uint32_t g_vsx_regnums_ppc64le[] = {
|
||||||
vsx_vs52_ppc64le, vsx_vs53_ppc64le, vsx_vs54_ppc64le, vsx_vs55_ppc64le,
|
vsx_vs52_ppc64le, vsx_vs53_ppc64le, vsx_vs54_ppc64le, vsx_vs55_ppc64le,
|
||||||
vsx_vs56_ppc64le, vsx_vs57_ppc64le, vsx_vs58_ppc64le, vsx_vs59_ppc64le,
|
vsx_vs56_ppc64le, vsx_vs57_ppc64le, vsx_vs58_ppc64le, vsx_vs59_ppc64le,
|
||||||
vsx_vs60_ppc64le, vsx_vs61_ppc64le, vsx_vs62_ppc64le, vsx_vs63_ppc64le,
|
vsx_vs60_ppc64le, vsx_vs61_ppc64le, vsx_vs62_ppc64le, vsx_vs63_ppc64le,
|
||||||
|
LLDB_INVALID_REGNUM // register sets need to end with this flag
|
||||||
};
|
};
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
Loading…
Reference in New Issue