<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Hello<div><br></div><div>I want to use KDB to debug the module.&nbsp;</div><div>I have done this:</div><div>1. &nbsp;make mrproper</div><div>2. &nbsp;download the patch from the site (ftp://oss.sgi.com/www/projects/kdb/download/). Include&nbsp;kdb-v4.4-2.6.32-common-6.bz2 and&nbsp;kdb-v4.4-2.6.32-x86-6.bz2</div><div>3. &nbsp;patch -p1 &lt;&nbsp;<span style="line-height: 1.7;">kdb-v4.4-2.6.32-common-6</span></div><div><span style="line-height: 1.7;">&nbsp; &nbsp; &nbsp;patch -p1 &lt;&nbsp;</span><span style="line-height: 1.7;">kdb-v4.4-2.6.32-x86-6</span></div><div><span style="line-height: 1.7;">4. &nbsp;make menuconfig</span></div><div><span style="line-height: 1.7;">&nbsp; &nbsp; &nbsp;Kernel hacking ---&gt;</span></div><div><span style="line-height: 1.7;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Compile the kernel with frame pointers(set Y)&nbsp;</span></div><div><span style="line-height: 1.7;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Built-in Kernel Debugger support (set Y) &nbsp;</span></div><div><span style="line-height: 1.7;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;KDB off by default(set Y)</span></div><div><span style="line-height: 1.7;">5. &nbsp;make</span></div><div><br></div><div>ERROR LOG:</div><div>arch/x86/kernel/traps.c:418 error:expected identifier or '(' before 'if'</div><div>arch/x86/kernel/traps.c:437 error:expected identifier or '(' before 'if'</div><div>arch/x86/kernel/traps.c:441 error:expected identifier or '(' before 'if'</div><div>...</div><div>conflicting types for 'reassert_nmi'</div><div>...note:previous definition of 'reassert_nmi' was here</div><div>...</div><div><br></div><div>What should I do ?</div><div><br></div><div>Thanks,</div><div>HeChuan</div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>