From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org, Aleksandar Ristovski <ARistovski@qnx.com>
Subject: Re: [PATCH v4 8/8] Tests for validate symbol file using build-id
Date: Wed, 19 Mar 2014 22:33:00 -0000 [thread overview]
Message-ID: <20140319223307.GB5398@host2.jankratochvil.net> (raw)
In-Reply-To: <531D332F.10309@codesourcery.com>
On Mon, 10 Mar 2014 04:36:15 +0100, Yao Qi wrote:
> On 03/03/2014 03:53 AM, Jan Kratochvil wrote:
> > gdb/testsuite/
> > 2014-02-26 Aleksandar Ristovski <aristovski@qnx.com
> >
> > Tests for validate symbol file using build-id.
> > * gdb.base/solib-mismatch-lib.c: New file.
> > * gdb.base/solib-mismatch-libmod.c: New file.
> > * gdb.base/solib-mismatch.c: New file.
> > * gdb.base/solib-mismatch.exp: New file.
>
> Since the test is about GDBserver, so IWBN to move them
> testsuite/gdb.server/ directory.
Done.
> > +if ![is_remote target] {
> > + untested "only gdbserver supports build-id reporting"
> > + return -1
> > +}
> > +if { [board_info target sockethost] != "localhost:" } {
> > + # The testcase below could be fixed for remote targets.
> > + untested "only gdbserver on localhost is supported (found [board_info target sockethost])"
> > + return -1
> > +}
>
> I don't figure out why this test should be only performed against
> native gdbserver.
If you ask why I have removed the linux-nat support as it regressed linux-nat
functionality reading wrong build-id for local files, described in:
https://sourceware.org/ml/gdb-patches/2014-02/msg00842.html
If you ask why it does not work for gdbserver running on a different computer
- that could be working but I have never run such a setup, I do not think
I would get all the uploads/downloads right without testing and I just did not
want to put more time into setting it up and fixing all.
But in the meantime upon other discussions this '!= "localhost:"' condition
has been removed, the testcase is apparently broken with different-filesystem
gdbserver but someone occasionally fixing up such testcases should find it
more easier than if the testcase disable was present there.
> > +file delete -force -- "${binlibfiledirrun}"
> > +file mkdir "${binlibfiledirrun}"
> > +
>
> If test is only run in native-gdbserver, these file operations are fine,
> otherwise, we may use "rmeote_file target delete" and
> "remote_exec target mkdir" here.
Discussed above.
> > + gdb_test_no_output "set solib-search-path \"${binlibfiledirgdb}\"" ""
> > + if { [gdb_test "cd ${binlibfiledirgdb}" "" ""] != 0 } {
> > + untested "cd ${binlibfiledirgdb}"
>
> Caller of proc solib_matching_test emits UNTESTED, so don't have to do
> it again inside sobli_matching_test.
I have rather reworked it a bit now with with_test_prefix() instead of the
extra 'msg' parameter.
Thanks,
Jan
next prev parent reply other threads:[~2014-03-19 22:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-02 19:53 [PATCH v4 0/8] Validate binary before use Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 3/8] Create empty common/linux-maps.[ch] and common/common-target.[ch] Jan Kratochvil
2014-03-10 3:46 ` Yao Qi
2014-03-19 22:33 ` Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 4/8] Prepare linux_find_memory_regions_full & co. for move Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 1/8] Move utility functions to common/ Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 5/8] Move linux_find_memory_regions_full & co Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 2/8] Merge multiple hex conversions Jan Kratochvil
2014-03-02 19:53 ` [PATCH v4 6/8] gdbserver build-id attribute generator Jan Kratochvil
2014-03-02 20:47 ` Eli Zaretskii
2014-03-02 19:54 ` [PATCH v4 7/8] Validate symbol file using build-id Jan Kratochvil
2014-03-02 19:54 ` [PATCH v4 8/8] Tests for validate " Jan Kratochvil
2014-03-10 3:38 ` Yao Qi
2014-03-19 22:33 ` Jan Kratochvil [this message]
2014-03-20 12:16 ` Yao Qi
2014-03-20 13:12 ` Pedro Alves
2014-03-21 16:58 ` Jan Kratochvil
2014-03-02 20:47 ` [PATCH v4 0/8] Validate binary before use Eli Zaretskii
2014-03-08 19:57 ` Jan Kratochvil
2014-03-09 16:53 ` Eli Zaretskii
2014-03-09 18:58 ` Jan Kratochvil
2014-03-09 19:19 ` Eli Zaretskii
2014-03-19 22:33 ` Jan Kratochvil
2014-03-21 16:58 ` Jan Kratochvil
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=20140319223307.GB5398@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=ARistovski@qnx.com \
--cc=gdb-patches@sourceware.org \
--cc=yao@codesourcery.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