aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/gdbstub.c
Commit message (Collapse)AuthorAgeFilesLines
* fix gdbstub build c/s c8177e691fAndrew Cooper2013-08-271-1/+1
| | | | | | | | | That changeset moved the watchdog functions from nmi.h to their own watchdog.h. I thought I had updated all relevant header files and the compiler was happy as well. However, gdbstub is not even compiled by default, and I accidentally missed it. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* x86: move watchdog declarations from config.h to nmi.hJan Beulich2013-02-151-0/+1
| | | | | | | They don't belong into the former. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* printk: prefer %#x et at over 0x%xJan Beulich2012-09-211-1/+1
| | | | | | | | | Performance is not an issue with printk(), so let the function do minimally more work and instead save a byte per affected format specifier. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
* x86: Implement cpu hotplug notifiers. Use them.Keir Fraser2010-05-141-4/+7
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* properly __initdata-annotate command line option string buffersKeir Fraser2009-08-311-1/+1
| | | | Signed-off-by: Jan Beulich <jbeulich@novell.com>
* gdbstub: Remove noisy message on every gdbstub entry.Keir Fraser2009-08-161-4/+0
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gdbstub: Fix the build and make a few cleanups.Keir Fraser2009-08-131-8/+7
| | | | Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gdbstub: Small fixes.Keir Fraser2009-08-121-1/+23
| | | | | | | * Correctly handly EFLAGS.TF in the hypervisor * Register value sent with 'P' command is in native byte order. Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* Remove unused 'retry' parameter from on_selected_cpus() etc.Keir Fraser2009-05-271-1/+1
| | | | | | | Remove the unused "retry" parameter of on_selected_cpus(), on_each_cpu(), smp_call_function(), and smp_call_function_single(). Signed-off-by: Jan Beulich <jbeulich@novell.com>
* Check the existence of serial port before usingKeir Fraser2008-09-121-3/+12
| | | | | Signed-off-by: Huacai Chen <huacai.chen@intel.com> Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
* gdbstub: Various fixes.Keir Fraser2007-12-271-26/+129
| | | | | | | | | Highlights: - Removed panics and smp stop calls in favour of an smp pause mechanism. - Added x86_64 register mapping for gdb serial protocol support. Signed-off-by: Dan Doucette <doucette.daniel@gmail.com>
* Fix gdb debugging of hypervisor.Keir Fraser2007-12-121-3/+16
| | | | | | | | | | | | | This patch: * enables the gdbstubs to properly access hypervisor memory; * prevents an assertion failure in __spurious_page_fault's call to map_domain_page if such accesses fail, by testing in_irq(); * prints some additional helpful messages; * fixes the endianness of register transfers from the gdbstubs so that gdb is much less confused. * fixes the documentation in docs/misc/crashdb.txt Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
* xen: Free initmem after boot. Mark lots of init functions as __initKeir Fraser2007-05-121-1/+1
| | | | | that weren't before. Signed-off-by: Keir Fraser <keir@xensource.com>
* Replace sprintf with snprintf and strncpy with strlcpy.kfraser@localhost.localdomain2007-01-291-1/+1
| | | | | | | | There are various cases where no NULL-terminated strings are guaranteed and eventual possible overflows. This patch fixes them. From: Christoph Egger <Christoph.Egger@amd.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* More 'const' cleanups (and fixes, for Solaris).kaf24@firebug.cl.cam.ac.uk2006-12-231-1/+1
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* [POWERPC][XEN] Fix gdbstub build break.Hollis Blanchard2006-12-121-0/+1
| | | | Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* [XEN] gdbstub return value is used to determine whether or notkfraser@localhost.localdomain2006-09-271-16/+10
| | | | | to continue execution. Signed-off-by: Keir Fraser <keir@xensource.com>
* Remove static forward declaration in gdbstub code.kaf24@firebug.cl.cam.ac.uk2006-09-261-1/+2
| | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Use GDB 'O' packets for console output if the serial line is sharedkfraser@localhost.localdomain2006-09-231-10/+42
| | | | | | | | | | and GDB is attached. It may be necessary for gdb and the console to share a serial port. This patch utilises the GDB protocol to encode console output. Based on a patch from Tony Breeds <tony@bakeyournoodle.com> Signed-off-by: Keir Fraser <keir@xensource.com>
* Reduce spin-waiting in Xen serial driver:kaf24@firebug.cl.cam.ac.uk2006-03-231-0/+1
| | | | | | | | | | | | | | | | | | 1. Split the serial port lock into receiver and transmitter locks. 2. In the ns16550 interrupt, only call the generic serial service routines if there is receive (or transmit) work to do. 3. In the generic transmit ISR, avoid long spin-waits by *trying* to take the transmitter lock and, if that fails, check again whether the transmitter is empty. This will allow us to bail bail quickly if there is a long-term lock holder stuffing lots of bytes. Also, gdbstub should be setting its serial handle in synchronous mode, just for sanity. Signed-off-by: Keir Fraser <keir@xensource.com>
* Upgrade all hypercalls to use the new guest_handle interface (on the Xen side).kaf24@firebug.cl.cam.ac.uk2006-03-071-1/+0
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Fix additional gdbstub issues.kaf24@firebug.cl.cam.ac.uk2006-03-061-9/+11
| | | | | | | | | | - gdbstub.h uses atomic_t and PAGE_SIZE, so include those headers - do not lie about setting breakpoints - fix memory writing Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Fix up some issues I found when porting PPC to the new common gdb stub code:kaf24@firebug.cl.cam.ac.uk2006-03-031-27/+7
| | | | | | | | | | | | | | | | | | | - cosmetic changes in the messages printed - 'flags' must always be unsigned long. - explicitly calling initialize_gdb() is not difficult. For x86 and ia64 I placed this call immediately before do_initcalls(), since that's where it's being called from now so we know it's safe. Architecture people can move it earlier as appropriate. - I don't understand all these ASSERT(!local_irq_is_enabled()) statements, sometimes bracketing a single call like receive_command(). How exactly would receive_command() manage to re-enable irqs? Also, a failing ASSERT would just call into the stub again anways... - initialize_gdb() was overcomplicated. serial_parse_handle() already handles the parsing for us, and there's no need to panic there. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
* Rename cdb to gdbstub and split it into arch dependent/neutral part.kaf24@firebug.cl.cam.ac.uk2006-01-141-0/+593
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>