This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [testsuite] Add test for setting breakpoints by full path
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 19 Sep 2004 20:18:24 -0400
- Subject: Re: [testsuite] Add test for setting breakpoints by full path
- References: <20040920001159.GA20633@nevyn.them.org>
On Sun, Sep 19, 2004 at 08:11:59PM -0400, Daniel Jacobowitz wrote:
> This patch adds a test for a bug I found in using the full pathname to a
> file to set breakpoints. I'll send along an analysis of the bug with the
> patch, in my next message.
>
> I needed to generate unique failure messages for failures that occur in
> gdb_breakpoint, so I added an option to suppress its automatic "fail"
> case.
>
> This test script depends on how the executable is compiled. Therefore,
> it returns "untested" if the host is remote. It copies its source file
> into the build directory, and compiles it using:
> - an absolute pathname
> - a relative pathname to the directory GDB is run in
> - a relative pathname from a different directory
>
> The last fails before symbols are loaded, without the patch I'll post.
>
> Test OK?
Bad Dan!
Tested by running the testsuite on i386-pc-linux-gnu, no regressions.
One failure without the corresponding patch to symtab.c. OK?
--
Daniel Jacobowitz