> -----Original Message-----
> From: Daniel Thompson [mailto:daniel.thomp...@linaro.org]
> Sent: Tuesday, January 6, 2015 6:25 AM
> To: Jake Oshins; Jason Wessel; KGDB Mailing List
> Subject: Re: [Kgdb-bugreport] Getting Linux kernel symbols to resolve in
> kgdb
> 
> 
> Having the log of the full gdb session would be useful too.
> 
> Slicing off the top (and command line) means we can't see that you've
> told gdb where to find the debug information.
> 
> Try something like "info address do_open". If gdb is launched correctly
> then that should work even before you've attached to the target.
> 
> 
> Daniel.
> 

I was trying to be concise and polite.  Oh well.  In any case, here's that 
output.  It seems like GDB thinks that it has symbol resolution but the target 
just doesn't match.  If I weren't certain that I was running the same kernel on 
the target (as shown by "uname") then I would think that my problem was there.

jakeo@jakeo-Ubuntu-Dev:~/src/linux2$ sudo gdb ./vmlinux
 [sudo] password for jakeo:
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./vmlinux...done.
 (gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
0xffffffff85120bd4 in ?? ()
(gdb) bt
#0  0xffffffff85120bd4 in ?? ()
#1  0xffff8800954f3e38 in ?? ()
#2  0xffffffff85120c55 in ?? ()
#3  0xffff8800954f3e78 in ?? ()
#4  0xffffffff854963c2 in ?? ()
#5  0xffffffff854962f5 in ?? ()
#6  0xffffffff851a0333 in ?? ()
#7  0x0000000000000002 in irq_stack_union ()
#8  0x0000000000000002 in irq_stack_union ()
#9  0xffff8800954f3ea8 in ?? ()
#10 0xffffffff854968f0 in ?? ()
#11 0x0000000000000002 in irq_stack_union ()
#12 0x0000000000000001 in irq_stack_union ()
#13 0xffff88002e02b200 in ?? ()
#14 0xffff8800954f3ed8 in ?? ()
#15 0xffffffff85257b42 in ?? ()
#16 0x0000000000c27408 in ?? ()
#17 0x0000000000000002 in irq_stack_union ()
#18 0xffff88002cf6a400 in ?? ()
#19 0xffff8800954f3f28 in ?? ()
#20 0xffffffff851ee0cb in ?? ()
#21 0xffff8800218dc3b0 in ?? ()
#22 0xffffffff856d4b99 in ?? ()
#23 0x0000000000000003 in irq_stack_union ()
#24 0xffff88002cf6a400 in ?? ()
#25 0x0000000000c27408 in ?? ()
#26 0x0000000000000002 in irq_stack_union ()
#27 0xffff8800954f3f78 in ?? ()
#28 0xffffffff851eeb09 in ?? ()
#29 0x0000000000000000 in ?? ()
(gdb) info address do_open
Symbol "do_open" is a function at address 0xffffffff81300fc0.
(gdb)

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to