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/19474] "break LINE_NUM" set breakpoint on file other than current source file


https://sourceware.org/bugzilla/show_bug.cgi?id=19474

--- Comment #1 from Yao Qi <qiyao at gcc dot gnu.org> ---
test case,

$ cat f.c 
extern int foo (void);
static int bar_in_main (void);
int
main (void)
{
  return foo () + bar_in_main ();
}

static int
bar_in_main (void)
{
  return 0;
}

$ cat foo/f.c
static int bar_in_solib (void);

int
foo (void)
{
  return bar_in_solib ();
}

static int
bar_in_solib (void)
{
  return 0;
}

-- 
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]