debuggers.hg
changeset 22689:285a8f8d217e
tools/gdbsx: Update gdbsx README
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
author | Mukesh Rathor <mukesh.rathor@oracle.com> |
---|---|
date | Tue Jan 04 15:40:00 2011 +0000 (2011-01-04) |
parents | 959e87a1117f |
children | fece73d4d309 |
files | tools/debugger/gdbsx/README |
line diff
1.1 --- a/tools/debugger/gdbsx/README Tue Jan 04 15:26:02 2011 +0000 1.2 +++ b/tools/debugger/gdbsx/README Tue Jan 04 15:40:00 2011 +0000 1.3 @@ -13,9 +13,6 @@ create a plug in for any other debugger 1.4 1.5 1.6 USAGE: 1.7 - - boot with gdbsx enabled hypervisor (eg, on OVM: xen-64bit-debug.gz) 1.8 - - copy gdbsx binary to the dom0 (assume hostname is "dom0"), then: 1.9 - 1.10 USAGE 1: 1.11 - dom0> gdbsx -c 1 64 : displays VCPU contexts for 64bit guest with domid 1 1.12 1.13 @@ -59,16 +56,6 @@ TIPS: 1.14 - make sure firewall is disabled on dom0 if running gdb on a different host. 1.15 - Must be at least gdb version 6.5-16.x to debug el5 kernels. 1.16 1.17 -BUILD: (if you don't have access to binary): 1.18 - - first compile the hypervisor: xen> make gdbsx=y 1.19 - To have both kdb and gdbsx, xen> make kdb=y gdbsx=y 1.20 - (NOTE: kdb is not required for gdbsx) 1.21 - - install the hypervisor and reboot 1.22 - - now go to, tools/debugger/gdbsx and do make 1.23 - On 32bit system, a 32bit binary will be built with support for both 32 1.24 - and 64bit guests. On 64bit system, a 64bit binary will be built with 1.25 - support for both. 1.26 - 1.27 1.28 Mukesh Rathor 1.29 Oracle Corporation, 1.30 @@ -89,12 +76,12 @@ define ps 1.31 set $task = $tasks 1.32 set $task_entry = (struct task_struct *)((unsigned long)$task - $offset) 1.33 printf "Pointer PID Command\n" 1.34 - printf "%-14p%-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm 1.35 + printf "%p %-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm 1.36 set $task = $task->next 1.37 while $task != $tasks 1.38 set $task_entry = (struct task_struct *)((unsigned long)$task - $offset) 1.39 if ($task_entry->pid) != 0 1.40 - printf "%-14p%-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm 1.41 + printf "%p %-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm 1.42 end 1.43 set $task = $task->next 1.44 end