[Bug symtab/23853] New: Symlinked sourcefiles not found

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[Bug symtab/23853] New: Symlinked sourcefiles not found

albert.aribaud at 3adev dot fr

            Bug ID: 23853
           Summary: Symlinked sourcefiles not found
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: keiths at redhat dot com
  Target Milestone: ---

GDB cannot find default symtabs when they are symlinks:

$ ln -s example.c example-link.c
$ gcc -g example-link.c -o example
$ gdb -nx -q example -ex "b 10"
Reading symbols from example...
(gdb) list
11         GNU General Public License for more details.
13         You should have received a copy of the GNU General Public License
14         along with this program.  If not, see
<http://www.gnu.org/licenses/>.  */
16      static int
17      foo (void)
18      {
19        return 0; /* break here  */
20      }
22      int
23      main (void)
24      {
25        return foo ();
26      }
(gdb) b 19
No line 19 in the current file.
Make breakpoint pending on future shared library load? (y or [n])

You are receiving this mail because:
You are on the CC list for the bug.