This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [PATCH] - Accept optional printed address at function breakpoints


drow> This is a debug info bug.  Your patch is not correct; when you say
drow> "break LINE" or "break FUNCTION" and there is debug info, it's GDB's
drow> established behavior to stop at the beginning of a line.  By not
drow> allowing the address we verify that GDB is stopping at the beginning of
drow> a line as expected.

That's right.  It's a subtle way of testing that the line number
information is correct.  If gdb prints a machine address in addition
to a line number, then either gcc has a bug in debug info output,
or gdb has a bug in debug info input.

Michael C


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