From: Joel Brobecker <brobecker@adacore.com>
To: Christophe LYON <christophe.lyon@st.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] obvious pattern fix in gdb.base/step-line.exp
Date: Fri, 27 Mar 2009 18:53:00 -0000 [thread overview]
Message-ID: <20090327184726.GW9472@adacore.com> (raw)
In-Reply-To: <49CCDB3D.5010302@st.com>
Hello Christophe,
> 2009-03-27 Christophe Lyon <christophe.lyon@st.com>
>
> testsuite/
> * gdb.base/step-line.exp: Fix pattern to allow full path before
> "step-line.c".
I'd love to have some feedback from the other maintainers on this one.
My first observation is that it doesn't fail for me when testing
out-of-tree, using either DWARF or stabs. So I'm wondering why
this is failure in Chistophe's case. Perhaps a dump of your debugging
information (filename/dirname info for step-line.c and the line table
as well) would allows to understand the difference.
That being said, I don't see that we make a guaranty at the user-level
that the name of the file will be printed using either its full path or
just the basename, or anthing in the middle. So we could argue that
the output with the full path is equally valid and that the expected
output should therefore be enhanced to accept both.
WDYT?
> Index: gdb/testsuite/gdb.base/step-line.exp
> ===================================================================
> --- gdb/testsuite/gdb.base/step-line.exp (revision 308)
> +++ gdb/testsuite/gdb.base/step-line.exp (working copy)
> @@ -46,7 +46,7 @@ if ![runto_main] then {
> return 0
> }
>
> -gdb_test "break f1" ".*Breakpoint 2 at .* file step-line.c.*" "break f1"
> +gdb_test "break f1" ".*Breakpoint 2 at .* file .*$srcfile.*" "break f1"
> gdb_test "continue" \
> "Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
> "continue to f1"
--
Joel
next prev parent reply other threads:[~2009-03-27 18:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-27 14:05 Christophe LYON
2009-03-27 18:53 ` Joel Brobecker [this message]
2009-03-30 13:51 ` Christophe LYON
2009-03-30 18:23 ` Joel Brobecker
2009-03-31 15:25 ` Christophe LYON
2009-04-01 18:32 ` Joel Brobecker
2009-04-02 8:52 ` Christophe LYON
2009-04-17 17:07 ` Christophe LYON
2009-04-17 17:30 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090327184726.GW9472@adacore.com \
--to=brobecker@adacore.com \
--cc=christophe.lyon@st.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox