mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Rationalise debugger stuff in the tree. Within Xen itself, remove PDB references and fold into domu_debug. When domu_debug hits a breakpoint, it pauses all vcpus of the domain and raises VIRQ_DEBUGGER (not VIRQ_PDB). The debugger in domain0 can either poll pause status or bind to VIRQ_DEBUGGER. Before debugging a breakpointed domain the debugger should issue PAUSEDOMAIN itself, or it is not guaranteed to see paused state of the domain! Outside Xen there's a new dir tools/debugger, containing gdb, pdb and a new library libxendebug (used by pdb). I also think the ptrace functions in libxc also ought to be moved out: either to libxendebug or to a new library libxenptrace. Signed-off-by: Keir Fraser <keir@xensource.com>
24 lines
538 B
Bash
Executable File
24 lines
538 B
Bash
Executable File
#!/bin/sh
|
|
|
|
XENROOT=`bk root`
|
|
export XENROOT
|
|
|
|
cd $XENROOT/tools/debugger/gdb
|
|
rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen
|
|
# FIXME:cw this should be smarter
|
|
wget -c ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2
|
|
tar xjf gdb-6.2.1.tar.bz2
|
|
|
|
cd $XENROOT/tools/debugger/gdb/gdb-6.2.1-xen-sparse
|
|
./mkbuildtree ../gdb-6.2.1
|
|
|
|
mkdir $XENROOT/tools/debugger/gdb/gdb-6.2.1-linux-i386-xen
|
|
cd $XENROOT/tools/debugger/gdb/gdb-6.2.1-linux-i386-xen
|
|
../gdb-6.2.1/configure
|
|
# some people don't have gmake
|
|
if which gmake ; then
|
|
gmake -j4
|
|
else
|
|
make -j4
|
|
fi
|