Article View: gnu.gdb.bug
Article #736break command doesn't use search path (3.1.2)
From: Glenn Engel
Date: Mon, 27 Mar 1989 18:26
Date: Mon, 27 Mar 1989 18:26
33 lines
1614 bytes
1614 bytes
It appears that the gdb break and list commands don't know about the search
path. If I compile a file junk/test.c and try to set a breakpoint at
test.c:3, gdb does not find the file. If I set a breakpoint with a procedure
name it will find the right file though. When using the syntax of
b test.c:3, shouldn't gdb search the path to find the filename ?
GDB 3.1.2, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /tmp/a.out...done.
Type "help" for a list of commands.
(gdb) b main
Breakpoint 1 at 0x9a: file junk/test.c, line 3.
(gdb) dir junk
Source directories searched: /tmp:/tmp/junk
(gdb) b test.c:3
No source file named test.c.
(gdb) b junk/test.c:3
Breakpoint 2 at 0x9a: file junk/test.c, line 3.
(gdb) run
Starting program: /tmp/a.out
Bpt 1, main () (junk/test.c line 3)
3 printf("hi there\n");
(gdb)
--
| Glenn R. Engel
| Hewlett-Packard
| (206) 335-2066
| glenne%hplsla@hplabs.hp.com
Technical Details
Message-ID:
<8903271826.AA17598@labgre.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HP-SDE.SDE.HP.COM!glenne%hplslaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!HP-SDE.SDE.HP.COM!glenne%hplsla From: glenne%hplsla@HP-SDE.SDE.HP.COM (Glenn Engel) Newsgroups: gnu.gdb.bug Subject: break command doesn't use search path (3.1.2) Message-ID: <8903271826.AA17598@labgre.HP.COM> Date: 27 Mar 89 18:26:20 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33