This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/11746] Be able to set breakpoints using partial source paths


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]