<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
 
<blockquote TYPE=CITE>
<pre>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?".</pre>
</blockquote>

<p><br><tt>Kazuo,</tt>
<p><tt>Ah yes -- Red Hat xen kernels don't have CONFIG_IKCONFIG. </tt><tt></tt>
<p><tt>I was trying to make the read_in_kernel_config() call as</tt>
<br><tt>early as possible so that all of its current (and future)</tt>
<br><tt>users can get their relevant config information prior to</tt>
<br><tt>having to figure it out some other way.  At a minimum,</tt>
<br><tt>I would like it to be called prior to kernel_init().</tt><tt></tt>
<p><tt>Can you try this instead, and let me know whether it works?:</tt><tt></tt>
<p><tt>--- main.c.orig 2006-08-18 09:32:30.000000000 -0400</tt>
<br><tt>+++ main.c      2006-08-18 09:32:51.000000000
-0400</tt>
<br><tt>@@ -380,7 +380,6 @@</tt>
<br><tt>        machdep_init(PRE_SYMTAB);</tt>
<br><tt>        symtab_init();</tt>
<br><tt>        machdep_init(PRE_GDB);</tt>
<br><tt>-       read_in_kernel_config(IKCFG_INIT);</tt>
<br><tt>        datatype_init();</tt><tt></tt>
<p><tt>        /*</tt>
<br><tt>@@ -405,6 +404,7 @@</tt>
<br><tt> {</tt>
<br><tt>         if (!(pc->flags
& GDB_INIT)) {</tt>
<br><tt>               
gdb_session_init();</tt>
<br><tt>+              
read_in_kernel_config(IKCFG_INIT);</tt>
<br><tt>               
kernel_init(PRE_GDB);</tt>
<br><tt>               
verify_version();</tt>
<br><tt>               
kernel_init(POST_GDB);</tt><tt></tt>
<p><tt>Thanks,</tt>
<br><tt>  Dave</tt>
<br><tt></tt> </html>