diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-04 13:07:05 +0000 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2005-06-04 13:07:05 +0000 |
commit | 7254a301ec076dc8ae0c2fb521b2854cbca6df81 (patch) | |
tree | b0ba3b9801934501b368f59c55e06d0a3b5d647d /tools/debugger/pdb/Makefile | |
parent | 87751a10c9c10226fb9c65a4c287fbacfa66e9ea (diff) | |
download | xen-7254a301ec076dc8ae0c2fb521b2854cbca6df81.tar.gz xen-7254a301ec076dc8ae0c2fb521b2854cbca6df81.tar.bz2 xen-7254a301ec076dc8ae0c2fb521b2854cbca6df81.zip |
bitkeeper revision 1.1665.1.5 (42a1a779yqLZDCutMj_vFNQlo3q3zw)
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>
Diffstat (limited to 'tools/debugger/pdb/Makefile')
-rw-r--r-- | tools/debugger/pdb/Makefile | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tools/debugger/pdb/Makefile b/tools/debugger/pdb/Makefile new file mode 100644 index 0000000000..579c7da12c --- /dev/null +++ b/tools/debugger/pdb/Makefile @@ -0,0 +1,56 @@ +OCAMLMAKEFILE = OCamlMakefile + +XEN_ROOT = ../../.. +include $(XEN_ROOT)/tools/Rules.mk + +# overwrite LDFLAGS from xen/tool/Rules.mk +# otherwise, ocamlmktop gets confused. +LDFLAGS = + +OCAML_ROOT=/usr/local +# force ocaml 3.08 +# OCAML_ROOT = /anfs/nos1/ach61/ocaml + +OCAMLC = $(OCAML_ROOT)/bin/ocamlc +OCAMLMKTOP = $(OCAML_ROOT)/bin/ocamlmktop +OCAMLLIBPATH= $(OCAML_ROOT)/lib/ocaml + +INCLUDES += -I $(XEN_XC) +INCLUDES += -I $(XEN_LIBXC) +INCLUDES += -I ../libxendebug +INCLUDES += -I $(OCAML_ROOT)/lib/ocaml + +CFLAGS += $(INCLUDES) +CFLAGS += -Wall +CFLAGS += -Werror +CFLAGS += -g + +CLIBS += xc +CLIBS += xendebug +CLIBS += pdb + +LIBDIRS += $(XEN_LIBXC) +LIBDIRS += $(XEN_LIBXUTIL) +LIBDIRS += ../libxendebug +LIBDIRS += . + +LIBS += unix str + +PRE_TARGETS = libpdb.a + +all : bc + +libpdb.a : pdb_xen.o + ar rc $@ $^ + ranlib $@ + +SOURCES += pdb_caml_xc.c pdb_xen.c +SOURCES += Util.ml Intel.ml +SOURCES += evtchn.ml evtchn.mli +SOURCES += Domain.ml Process.ml +SOURCES += Domain.mli Process.mli +SOURCES += PDB.ml debugger.ml server.ml +RESULT = pdb + +include $(OCAMLMAKEFILE) + |