This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/11746] Be able to set breakpoints using partial source paths
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 12 Sep 2014 22:32:10 +0000
- Subject: [Bug breakpoints/11746] Be able to set breakpoints using partial source paths
- Auto-submitted: auto-generated
- References: <bug-11746-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=11746
--- Comment #4 from dje at google dot com ---
(In reply to Sergio Durigan Junior from comment #3)
> Doug, could you please take a look and close this bug if appropriate?
Indeed it is.
@ruffy:play$ cat foo/main.c
int
main ()
{
bar ();
baz ();
return 0;
}
@ruffy:play$ cat foo/bar/x.c
void
bar (void)
{
return;
}
@ruffy:play$ cat foo/baz/x.c
void
baz (void)
{
return;
}
@ruffy:play$ gcc -g foo/main.c foo/bar/x.c foo/baz/x.c
@ruffy:play$ gdb a.out
[...]
Reading symbols from a.out...done.
(gdb) b x.c:4
Breakpoint 1 at 0x400510: x.c:4. (2 locations)
(gdb) d
Delete all breakpoints? (y or n) y
(gdb) b bar/x.c:4
Breakpoint 2 at 0x400510: file foo/bar/x.c, line 4.
(gdb) b baz/x.c:4
Breakpoint 3 at 0x400517: file foo/baz/x.c, line 4.
(gdb) q
--
You are receiving this mail because:
You are on the CC list for the bug.