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: [testsuite] Add test for setting breakpoints by full path


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


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