This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: expand-symtabs.exp
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: cseo at linux dot vnet dot ibm dot com, jimb at codesourcery dot com, gdb at sourceware dot org
- Date: Sun, 27 Jan 2008 10:38:02 -0500
- Subject: Re: expand-symtabs.exp
- References: <200801271528.m0RFSMo6032355@brahms.sibelius.xs4all.nl>
On Sun, Jan 27, 2008 at 04:28:22PM +0100, Mark Kettenis wrote:
> The new expand-psymtabs.exp consistently fails on all systems I try it
> on with something like:
>
>
> (gdb) break 32
> No line 32 in file "../../../../src/gdb/gdb/testsuite/gdb.base/expand-psymtabs.c".
> (gdb) FAIL: gdb.base/expand-psymtabs.exp: Expand psymtabs
>
>
> Looking at the source code for this test, GDB's respnse here is quite
> reasonable, since line 32 is the line withe the comment /* Break here
> */ in the code fragment below:
GDB's historical behavior in that case is to set a breakpoint on the
next line, and there ought to be code for the next line (the
epilogue). It looks like you're hitting the bug the testcase was
written for. Does break 32 work with -readnow?
FWIW, it passed for me (Debian x86_64).
http://sourceware.org/ml/gdb-patches/2007-10/msg00456.html
--
Daniel Jacobowitz
CodeSourcery