aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/debugger.h
Commit message (Collapse)AuthorAgeFilesLines
* remove the use of -Wno-unused-valueJan Beulich2011-12-131-1/+6
| | | | | | | | It has been hiding actual mistakes, and there are not too many changes necessary to make things build without suppressing this warning. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* xen: remove extern function declarations from C files.Tim Deegan2011-05-261-0/+5
| | | | | | | | Move all extern declarations into appropriate header files. This also fixes up a few places where the caller and the definition had different signatures. Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
* gdbsx: Always build -- remove build-time config option.Keir Fraser2010-07-021-2/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gdbsx: a gdbserver stub for xen.Keir Fraser2009-10-151-0/+4
| | | | | | | | It should be run on dom0 on gdbsx enabled hypervisor. For details, please see tools/debugger/gdbsx/README Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* x86: eliminate (unused) return value from exception handling routinesKeir Fraser2007-12-101-2/+2
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* hvm: Clean up handling of exception intercepts.Keir Fraser2007-03-281-2/+1
| | | | | Only intercept #DB/#BP if a debugger is attached. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] Never crash machine on int3 traps.kaf24@firebug.cl.cam.ac.uk2006-10-041-1/+2
| | | | | Do not enter debugger on dom0 shutdown unless dom0 crashed. Signed-off-by: Keir Fraser <keir@xensource.com>
* [XEN] gdbstub return value is used to determine whether or notkfraser@localhost.localdomain2006-09-271-36/+7
| | | | | to continue execution. Signed-off-by: Keir Fraser <keir@xensource.com>
* Lower-casify some macros, and rename kernel_mode() to guest_kernel_mode().kaf24@firebug.cl.cam.ac.uk2006-03-081-1/+1
| | | | | | | | | Fix the macro so that it evaluates false if the given register context is not a valid guest context. Signed-off-by: Keir Fraser <keir@xensource.com>
* Rename cdb to gdbstub and split it into arch dependent/neutral part.kaf24@firebug.cl.cam.ac.uk2006-01-141-4/+6
| | | | | | | Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Add debugging flag for domains to make domu debugging a run-time optionkaf24@firebug.cl.cam.ac.uk2005-12-151-36/+31
| | | | | | Signed-off-by: Kip Macy kmacy@fsmware.ckm
* bitkeeper revision 1.1665.1.5 (42a1a779yqLZDCutMj_vFNQlo3q3zw)kaf24@firebug.cl.cam.ac.uk2005-06-041-49/+4
| | | | | | | | | | | | | | | | | | | 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>
* bitkeeper revision 1.1665.2.1 (42a0c8fc5ayKCKfMu8Oo5dUccP4STA)ach61@arcadians.cl.cam.ac.uk2005-06-031-0/+44
| | | | | PDB 0.3
* bitkeeper revision 1.1644.1.1 (429f749dKFzVUg9NXDMVu4apHJvpNQ)kaf24@firebug.cl.cam.ac.uk2005-06-021-1/+1
| | | | | | | The last annoying rename: struct exec_domain *ed -> struct vcpu *v Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.20.1 (42836117f2yEkILParltXJcom3kTeA)kaf24@firebug.cl.cam.ac.uk2005-05-121-2/+2
| | | | | | | | | More descriptive 'flags' and 'id' field names for exec_domain/domain structures seems a good idea after all. At the same time, I've renamed the flag macros to be a bit neater and more descriptive, and more in keeping with the style of such definitions in asm/mm.h, for example. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.5.35 (427e00b2juTv-JMiPdIYinvwaH2N8Q)kaf24@firebug.cl.cam.ac.uk2005-05-081-1/+1
| | | | | | Field-name cleanups. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.5.8 (4278a1034rHdLS-yTnpszKhLLp4oGw)cl349@firebug.cl.cam.ac.uk2005-05-041-0/+3
| | | | | | Add debugger_trap_immediate to in-xen-debugger stub. Signed-off-by: Christian Limpach <Christian Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1389.1.26 (42764ebcQUGB5SU0NuOL0gHMTOa--A)kaf24@firebug.cl.cam.ac.uk2005-05-021-1/+8
| | | | | | Fix int3 handling in cdb. They're harmless. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.1.12 (4271f20fuu_UWEqTVagTm3zNUhVqJA)kaf24@firebug.cl.cam.ac.uk2005-04-291-3/+2
| | | | | | Simplify cdb. Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1389.1.2 (4270ed5dZvr_HdIQR0eBM2m4Kj81_A)kaf24@firebug.cl.cam.ac.uk2005-04-281-6/+6
| | | | | | | | | Renames: execution_context/xen_regs -> cpu_user_regs full_execution_context -> vcpu_guest_context [defined both 'struct xxx' and 'xxx_t' forms] Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1236.1.140 (4244ed8bSPCQyrtSjZ4u8T4mvHyRfg)cl349@firebug.cl.cam.ac.uk2005-03-261-1/+2
| | | | | | Cleanup includes. Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
* bitkeeper revision 1.1236.46.1 (4244162c_azRsnO5-xqJ_Q-kWnMqMQ)kaf24@firebug.cl.cam.ac.uk2005-03-251-57/+19
| | | | | | | | | No direct entry to __enter_scheduler allowed. Must always pass through softirq handler. Also domain_crash() now returns and defers descehduling from local CPU: old behaviour is still provided by domain_crash_synchronous(). Signed-off-by: Keir Fraser <keir@xensource.com>
* bitkeeper revision 1.1180 (420ca6f6iwPf_PBxj1CWyA2TtgM19w)sos22@douglas.cl.cam.ac.uk2005-02-111-4/+5
| | | | | | | Get rid of cdb_trap, and replace it with a new function ``call_with_registers''. Signed-off-by: sos22@cl.cam.ac.uk.
* bitkeeper revision 1.1178 (420c87ccD2VdHFZVGUqHR4Zd2yI1mg)sos22@douglas.cl.cam.ac.uk2005-02-111-0/+8
| | | | | | | | | | | After a fatal trap, we want to debug whatever caused the trap rather than the trap handler. Fix things up accordingly. Also add some documentation while I'm here. Signed-off-by: sos22@cl.cam.ac.uk.
* bitkeeper revision 1.1170.1.1 (420b98f5HLKkq19C9PxLpNFZOD2-mg)sos22@douglas.cl.cam.ac.uk2005-02-101-1/+1
| | | | | Make it compile in the non-crash_debug case.
* bitkeeper revision 1.1162 (420b71f6yarVsHEUH8wBvGFgIVSTBQ)sos22@douglas.cl.cam.ac.uk2005-02-101-0/+11
| | | | | Re-sanify after merge.
* bitkeeper revision 1.1159.187.22 (41a89729VHxMK8Tp4qcLrOPCoZrdog)kaf24@scramble.cl.cam.ac.uk2004-11-271-1/+2
| | | | | | | First cut for VM86 support, based on Stephan Diestelhorst's patches. It doesn't actually work yet -- it's possible that e.g., signal delivery is broken.
* bitkeeper revision 1.1159.187.3 (41a3bdde1DKDiUc_Vvg6h5QrnkHvJg)kaf24@scramble.cl.cam.ac.uk2004-11-231-13/+14
| | | | | | | | Big rewrite of Xen->guest transition code. If we fault during the transition then we roll back and reenable interrupts before properly handling the fault. This means, for example, that shadow code always executes with interrupts enabled.
* bitkeeper revision 1.1159.180.2 (419dc71eHwyXT3BVHFdxBKRp1BPxFw)kaf24@scramble.cl.cam.ac.uk2004-11-191-23/+3
| | | | | | Add return codes to exception handlers to indicate if a fault was fixed up and so instruction replay ought to work.
* bitkeeper revision 1.1159.170.19 (419641c7PFSwb0OCvYznpBOaQJY6Fw)kaf24@freefall.cl.cam.ac.uk2004-11-131-0/+137
Cleaned up debugger interface to traps.c.