Hi,

For xen domain dump image, read_in_kernel_config() calls
gdb_interface() like following backtrace, and crash exits with a fatal
error "crash: gdb_interface: gdb not initialized?".


Kazuo,

Ah yes -- Red Hat xen kernels don't have CONFIG_IKCONFIG. 

I was trying to make the read_in_kernel_config() call as
early as possible so that all of its current (and future)
users can get their relevant config information prior to
having to figure it out some other way.  At a minimum,
I would like it to be called prior to kernel_init().

Can you try this instead, and let me know whether it works?:

--- main.c.orig 2006-08-18 09:32:30.000000000 -0400
+++ main.c      2006-08-18 09:32:51.000000000 -0400
@@ -380,7 +380,6 @@
        machdep_init(PRE_SYMTAB);
        symtab_init();
        machdep_init(PRE_GDB);
-       read_in_kernel_config(IKCFG_INIT);
        datatype_init();

        /*
@@ -405,6 +404,7 @@
 {
         if (!(pc->flags & GDB_INIT)) {
                gdb_session_init();
+               read_in_kernel_config(IKCFG_INIT);
                kernel_init(PRE_GDB);
                verify_version();
                kernel_init(POST_GDB);

Thanks,
  Dave