[gnu.gdb.bug] break command doesn't use search path

glenne%hplsla@HP-SDE.SDE.HP.COM (Glenn Engel) (03/28/89)

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

fox@cs.cs.columbia.edu (David Fox) (03/29/89)

Where does gdb-3.1.2 come from?
-david
fox@cs.columbia.edu