This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] - Accept optional printed address at function breakpoints
- From: mec dot gnu at mindspring dot com (Michael Elizabeth Chastain)
- To: drow at mvista dot com, fnf at ninemoons dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 8 Dec 2003 11:52:33 -0500 (EST)
- Subject: 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