Thread View: gnu.gdb.bug
2 messages
2 total messages
Started by Glenn Engel
Mon, 27 Mar 1989 18:26
break command doesn't use search path (3.1.2)
Author: 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
Re: break command doesn't use search path (3.1.2)
Author: David Fox
Date: Tue, 28 Mar 1989 23:10
Date: Tue, 28 Mar 1989 23:10
3 lines
624 bytes
624 bytes
Where does gdb-3.1.2 come from? -david fox@cs.columbia.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads