I think it was not built with -g otherwise the symbols would have been there in the vmlinux itself, right ?<br>That is the reason I need to add symbols externally.<br>Please dont ask me to rebuild the kernel, this is vanilla OpenSUSE 11.3 symbols and debug kernel should be available somewhere. I just need to know how/where to add the symbols. The problem is not reproducible, I need to debug the core which I have on hand.<br>
<br>Thanks.<br>Akash<br><br><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 10:19 PM, amit mehta <span dir="ltr"><<a href="mailto:gmate.amit@gmail.com">gmate.amit@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Not sure about the symbol table, but was your kernel compiled<br>
with -g flag (-g to the CFLAGS variable in the kernel Makefile) ?<br>
<br>
-Amit<br>
<div><div></div><div class="h5"><br>
On Fri, Aug 5, 2011 at 10:42 AM, Akash <<a href="mailto:email2akashjain@gmail.com">email2akashjain@gmail.com</a>> wrote:<br>
> Hello,<br>
><br>
> I have a core dump from following machine :<br>
><br>
> # uname -a<br>
> Linux sing-vto2-dst 2.6.34.8-0.2-desktop #1 SMP PREEMPT 2011-04-06 18:11:26<br>
> +0200 x86_64 x86_64 x86_64 GNU/Linux<br>
><br>
> I have opened this core in gdb<br>
><br>
> # gdb vmlinux-2.6.34.8-0.2-desktop kernel.core0<br>
> GNU gdb 6.6 (build 2009-10-05)<br>
> Copyright (C) 2006 Free Software Foundation, Inc.<br>
> GDB is free software, covered by the GNU General Public License, and you are<br>
> welcome to change it and/or distribute copies of it under certain<br>
> conditions.<br>
> Type "show copying" to see the conditions.<br>
> There is absolutely no warranty for GDB. Type "show warranty" for details.<br>
> (no debugging symbols found)<br>
> Program terminated with signal 11, Segmentation fault.<br>
> #0 0xffffffff8100ba60 in default_idle ()<br>
><br>
><br>
> How can I add symbols to gdb ?<br>
> When I try to add symbols from System.map I get following error :<br>
><br>
> (gdb) add-symbol-file System.map-2.6.34.8-0.2-desktop<br>
> The address where System.map-2.6.34.8-0.2-desktop has been loaded is missing<br>
><br>
><br>
> At what address should the System.map be added ? How can I find out that<br>
> address ?<br>
><br>
> Thanks for any help.<br>
><br>
> Akash<br>
</div></div>> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>
><br>
</blockquote></div><br>