aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/gdbstub.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-03 10:53:58 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-03 10:53:58 +0100
commit7cca11754fb68f1f35468092442d7b1485d2633e (patch)
tree1603dd14952f931625a6b4dbe2f21568abc61018 /xen/include/xen/gdbstub.h
parentb8d1d84a4f6938350faf24f1516015f17a547a14 (diff)
downloadxen-7cca11754fb68f1f35468092442d7b1485d2633e.tar.gz
xen-7cca11754fb68f1f35468092442d7b1485d2633e.tar.bz2
xen-7cca11754fb68f1f35468092442d7b1485d2633e.zip
Fix up some issues I found when porting PPC to the new common gdb stub code:
- 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>
Diffstat (limited to 'xen/include/xen/gdbstub.h')
-rw-r--r--xen/include/xen/gdbstub.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/xen/include/xen/gdbstub.h b/xen/include/xen/gdbstub.h
index 9d2e323aed..609831de95 100644
--- a/xen/include/xen/gdbstub.h
+++ b/xen/include/xen/gdbstub.h
@@ -21,6 +21,8 @@
#ifndef __XEN_GDBSTUB_H__
#define __XEN_GDBSTUB_H__
+#ifdef CRASH_DEBUG
+
/* value <-> char (de)serialzers for arch specific gdb backends */
char hex2char(unsigned long x);
int char2hex(unsigned char c);
@@ -84,6 +86,14 @@ void gdb_arch_exit(struct cpu_user_regs *regs);
#define SIGALRM 14
#define SIGTERM 15
+void initialise_gdb(void);
+
+#else
+
+#define initialise_gdb() ((void)0)
+
+#endif
+
#endif /* __XEN_GDBSTUB_H__ */
/*