OpenCores
Issue List
GDB 7.2 problem #163
Closed dinsh opened this issue almost 13 years ago
dinsh commented almost 13 years ago

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 ...

jeremybennett commented almost 13 years ago
<p> Hi dinsh </p> <p> Did you build vmlinux with all its symbols included. By default Linux builds without symbol information (makes a much smaller file). </p> <p> In any case be careful when debugging vmlinux. If you are simulating with Or1ksim, the RSP server does not get address translation right. It is really debugging physical addresses, which will not match up with your symbol table. </p> <p> I don't think this is a bug. See if my suggestions help, and if all is OK, I will close the bug. <p> HTH </p> <p> Jeremy </p>
jeremybennett was assigned almost 13 years ago
dinsh commented almost 13 years ago

Thank Jeremy. Could you give me some instructions how to build vmlinux with all its symbols included. I try to change some options about GCC. But it cannt work. Thx a lot!

dinsh commented almost 13 years ago

Thank Jeremy. Could you give me some instructions how to build vmlinux with all its symbols included. I try to change some options about GCC. But it cannt work. Thx a lot!

jeremybennett commented almost 13 years ago
<p> Transferred to OpenRISC bugzilla (<a href="http://bugzilla.opencores.org/show_bug.cgi?id=40">Bug 40</a>). </p> <p> Marking closed in this bugtracker. </p>
jeremybennett closed this almost 13 years ago

Assignee
jeremybennett
Labels
Bug