[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] make x86-64 register dump readable



On an 80-columns-wide terminal, the register dump wrapped in an ugly way
(as
its basic structure was appearantly taken from i386 code).

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

---
/home/jbeulich/src/xen/2005-08-22/xen/arch/x86/x86_64/traps.c   2005-08-21
02:34:41.000000000 +0200
+++ 2005-08-22/xen/arch/x86/x86_64/traps.c      2005-08-26
09:58:11.000000000 +0200
@@ -20,14 +20,18 @@ void show_registers(struct cpu_user_regs
     if ( !GUEST_MODE(regs) )
         print_symbol(" %s", regs->rip);
     printk("\nEFLAGS: %016lx\n", regs->eflags);
-    printk("rax: %016lx   rbx: %016lx   rcx: %016lx   rdx: %016lx\n",
-           regs->rax, regs->rbx, regs->rcx, regs->rdx);
-    printk("rsi: %016lx   rdi: %016lx   rbp: %016lx   rsp: %016lx\n",
-           regs->rsi, regs->rdi, regs->rbp, regs->rsp);
-    printk("r8:  %016lx   r9:  %016lx   r10: %016lx   r11: %016lx\n",
-           regs->r8,  regs->r9,  regs->r10, regs->r11);
-    printk("r12: %016lx   r13: %016lx   r14: %016lx   r15: %016lx\n",
-           regs->r12, regs->r13, regs->r14, regs->r15);
+    printk("rax: %016lx   rcx: %016lx   rdx: %016lx\n",
+           regs->rax, regs->rcx, regs->rdx);
+    printk("rbx: %016lx   rsp: %016lx   rbp: %016lx\n",
+           regs->rbx, regs->rsp, regs->rbp);
+    printk("rsi: %016lx   rdi: %016lx    r8: %016lx\n",
+           regs->rsi, regs->rdi, regs->r8);
+    printk(" r9: %016lx   r10: %016lx   r11: %016lx\n",
+           regs->r9, regs->r10, regs->r11);
+    printk("r12: %016lx   r13: %016lx   r14: %016lx\n",
+           regs->r12, regs->r13, regs->r14);
+    printk("r15: %016lx"/*"    fs: %016lx    gs: %016lx"*/"\n",
+           regs->r15/*, ->fs_base, ->gs_base_user*/);
 
     if ( GUEST_MODE(regs) )
         show_guest_stack();

Attachment: xen-x86_64-readable-register-dump.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.