~ressu/+junk/xen-debian

« back to all changes in this revision

Viewing changes to tools/debugger/gdbsx/README

  • Committer: sami at haahtinen
  • Author(s): Bastian Blank
  • Date: 2011-03-17 14:12:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: sami@haahtinen.name-20110317141245-owgqox0l0p3g5857
Tags: 4.1.0~rc6-1
* New upstream release candidate.
* Build documentation using pdflatex.
* Use python 2.6. (closes: #596545)
* Fix lintian override.
* Install new tools: xl, xenpaging.
* Enable blktap2.
  - Use own md5 implementation.
  - Fix includes.
  - Fix linking of blktap2 binaries.
  - Remove optimization setting.
* Temporarily disable hvmloader, wants to download ipxe.
* Remove xenstored pid check from xl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
 
15
15
USAGE:
16
 
   - boot with gdbsx enabled hypervisor (eg, on OVM: xen-64bit-debug.gz)
17
 
   - copy gdbsx binary to the dom0 (assume hostname is "dom0"), then:
18
 
 
19
16
   USAGE 1:
20
17
   - dom0> gdbsx -c 1 64 : displays VCPU contexts for 64bit guest with domid 1
21
18
 
59
56
   - make sure firewall is disabled on dom0 if running gdb on a different host.
60
57
   - Must be at least gdb version 6.5-16.x to debug el5 kernels.
61
58
 
62
 
BUILD: (if you don't have access to binary):
63
 
   - first compile the hypervisor: xen> make gdbsx=y
64
 
         To have both kdb and gdbsx, xen> make kdb=y gdbsx=y
65
 
         (NOTE: kdb is not required for gdbsx)
66
 
   - install the hypervisor and reboot
67
 
   - now go to, tools/debugger/gdbsx and do make
68
 
     On 32bit system, a 32bit binary will be built with support for both 32
69
 
     and 64bit guests. On 64bit system, a 64bit binary will be built with 
70
 
     support for both.
71
 
 
72
59
 
73
60
Mukesh Rathor
74
61
Oracle Corporation,
89
76
        set $task = $tasks
90
77
        set $task_entry = (struct task_struct *)((unsigned long)$task - $offset)
91
78
        printf "Pointer       PID      Command\n"
92
 
        printf "%-14p%-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm
 
79
        printf "%p %-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm
93
80
        set $task = $task->next
94
81
        while $task != $tasks
95
82
                set $task_entry = (struct task_struct *)((unsigned long)$task - $offset)
96
83
                if ($task_entry->pid) != 0
97
 
                        printf "%-14p%-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm
 
84
                        printf "%p %-9d%s\n", $task_entry, $task_entry->pid, $task_entry->comm
98
85
                end
99
86
                set $task = $task->next
100
87
        end