xen/x86: Fix CONFIG_CRASH_DEBUG build following c/s 897129dea
PATCH 1/1 xen/x86: Fix CONFIG_CRASH_DEBUG build following c/s 897129dea
Found by a Travis RANDCONFIG run.
---
CC: Jan Beulich <[email protected]>
CC: Elena Ufimtseva <[email protected]>
--- xen/arch/x86/gdbstub.c | 8 ++++---- xen/arch/x86/x86_64/gdbstub.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)
xen/arch/x86/gdbstub.c +4 -4
@@ -66,16 +66,16 @@ gdb_arch_resume(struct cpu_user_regs *regs, struct gdb_context *ctx) {if ( addr !=-1UL ) - regs->eip = addr; + regs->rip = addr; - regs->eflags &= ~X86_EFLAGS_TF ; + regs->_eflags &= ~X86_EFLAGS_TF ;/* Set eflags.RF to ensure we do not re-enter. */ - regs->eflags |=X86_EFLAGS_RF ; + regs->_eflags |=X86_EFLAGS_RF ;/* Set the trap flag if we are single stepping. */ if ( type ==GDB_STEP ) - regs->eflags |=X86_EFLAGS_TF ; + regs->_eflags |=X86_EFLAGS_TF ; }/*
xen/arch/x86/x86_64/gdbstub.c +1 -1
@@ -44,7 +44,7 @@ gdb_arch_read_reg_array(struct cpu_user_regs *regs, struct gdb_context *ctx)GDB_REG64 (regs->r15);GDB_REG64 (regs->rip); -GDB_REG32 (regs->eflags); +GDB_REG32 (regs->_eflags);GDB_REG32 (regs->cs);GDB_REG32 (regs->ss);
Signature · 7 lines
2.1.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xen.org/xen-devel
Quoted 4 lines
Quoted 1 line
Quoted 1 line · On 06.01.17 at 15:34, <[email protected]> wrote:
Found by a Travis RANDCONFIG run.
Signed-off-by Andrew Cooper <[email protected]>
I'm sorry for the breakage.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 3 lines · Andrew Cooper
Found by a Travis RANDCONFIG run.
Signed-off-by Andrew Cooper <[email protected]>
Quoted 49 lines
---
CC: Jan Beulich <[email protected]>
CC: Elena Ufimtseva <[email protected]>--- xen/arch/x86/gdbstub.c | 8 ++++---- xen/arch/x86/x86_64/gdbstub.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-)xen/arch/x86/gdbstub.c +4
-4@@ -66,16 +66,16 @@ gdb_arch_resume(struct cpu_user_regs *regs, struct gdb_context *ctx) {if ( addr !=-1UL ) - regs->eip = addr; + regs->rip = addr; - regs->eflags &= ~X86_EFLAGS_TF ; + regs->_eflags &= ~X86_EFLAGS_TF ;/* Set eflags.RF to ensure we do not re-enter. */ - regs->eflags |=X86_EFLAGS_RF ; + regs->_eflags |=X86_EFLAGS_RF ;/* Set the trap flag if we are single stepping. */ if ( type ==GDB_STEP ) - regs->eflags |=X86_EFLAGS_TF ; + regs->_eflags |=X86_EFLAGS_TF ; }/* xen/arch/x86/x86_64/gdbstub.c +1
-1@@ -44,7 +44,7 @@ gdb_arch_read_reg_array(struct cpu_user_regs *regs, struct gdb_context *ctx)GDB_REG64 (regs->r15);GDB_REG64 (regs->rip); -GDB_REG32 (regs->eflags); +GDB_REG32 (regs->_eflags);GDB_REG32 (regs->cs);GDB_REG32 (regs->ss);Signature · 1 line
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 5 lines · Elena Ufimtseva
Quoted 3 lines · Andrew Cooper
Found by a Travis RANDCONFIG run.
Signed-off-by Andrew Cooper <[email protected]>Acked-by Elena Ufimtseva <[email protected]>
Thanks. Pushed.
~Andrew
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel