Hi, I use GDB 7.2 to debug linux-2.6.39 by Jonas. I use command "file vmlinux", but I cannot see any source when I use command "list". There are just two files: libgcc2.c & libgcc2.h. The example in opencore website (demo_or32_sw) is OK. Could you help me ?? Thx a lot!
dinsh@dinsh-desktop:~/openrisc/linux-2.6.39$ or32-linux-gdb Building automata... done, num uncovered: 0/216. Parsing operands data... done. GNU gdb (OpenRISC 32-bit toolchain for or32-linux (built 20110622)) 7.2-or32-1.0rc3 Copyright (C) 2010 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 "--host=i686-pc-linux-gnu --target=or32-linux". For bug reporting instructions, please see: http://www.opencores.org/. (gdb) file vmlinux Reading symbols from /home/dinsh/openrisc/linux-2.6.39/vmlinux...done. (gdb) list main.c:1 No source file named main.c. (gdb) list 1 / More subroutines needed by GCC output code on some machines. / 2 / Compile this one with gcc. / 3 /* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008, 2009 5 Free Software Foundation, Inc. 6 7 This file is part of GCC. 8 9 GCC is free software; you can redistribute it and/or modify it under 10 the terms of the GNU General Public License as published by the Free ...
This is a duplicate of bug 2015. Marking closed.