From: Simon Marchi <simon.marchi@polymtl.ca>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] Remove HP-UX references fom testsuite
Date: Mon, 21 Dec 2015 17:53:00 -0000 [thread overview]
Message-ID: <CAFXXi0nz4PUiOH5yNVeU_qYX4+giNEC11A1v3a4Nhe3CNeXqwg@mail.gmail.com> (raw)
In-Reply-To: <567831CD.2090406@redhat.com>
On 21 December 2015 at 12:07, Pedro Alves <palves@redhat.com> wrote:
> On 12/21/2015 04:57 PM, Simon Marchi wrote:
>> On 21 December 2015 at 07:48, Pedro Alves <palves@redhat.com> wrote:
>>> I looked this one over too. A few minor comments below, but
>>> otherwise looks good to me. Thanks for doing this!
>>>
>>> On 12/19/2015 11:30 PM, Simon Marchi wrote:
>>>
>>>> * gdb.multi/bkpt-multi-exec.ex: Likewise.p
>>>
>>> Typo: "ex: Likewise.p" -> "exp: Likewise."
>>
>> Fixed.
>>
>>>> +gdb_test_multiple "catch vfork" "$name" {
>>>> + -re "Catchpoint \[0-9\]* .vfork..*$gdb_prompt $" {
>>>> + pass $name
>>>> + }
>>>> + -re "Catch of vfork not yet implemented.*$gdb_prompt $" {
>>>
>>> This case can be removed. GDB doesn't ever output this.
>>
>> Actually, is it true for all "Catch of * not yet implemented" cases?
>>
>
> Yes. I did a google search now for "Catch of fork not yet implemented"
> and found this:
>
> https://www.sourceware.org/ml/gdb-patches/2004-01/msg00679.html
>
>> testsuite/gdb.base/break.exp
>> 482: -re "Catch of fork not yet implemented.*$gdb_prompt $" {
>> 493: -re "Catch of vfork not yet implemented.*$gdb_prompt $" {
>> 503: -re "Catch of exec not yet implemented.*$gdb_prompt $" {
>>
>> testsuite/gdb.base/sepdebug.exp
>> 291: -re "Catch of fork not yet implemented.*$gdb_prompt $" {
>> 302: -re "Catch of vfork events not supported on HP-UX 10.20.*" {
>> 308: -re "Catch of vfork not yet implemented.*$gdb_prompt $" {
>> 318: -re "Catch of exec not yet implemented.*$gdb_prompt $" {
>>
>> Oh damn, that just found another HP-UX reference. I'll remove the
>> "Catch of vfork events not supported on HP-UX 10.20.*" as part of this
>> patch.
>>
>> Grepping for "Catch of" in the source doesn't return anything, so I
>> guess they could all be removed from the testsuite. If that is right,
>> I think I would do it in a separate patch.
>
> That'd be great!
>
>>
>> Another thing, the gdb.base/environ.exp is guarded by a
>>
>> 23 if ![istarget "hppa*-*-hpux*"] then {
>> 24 return
>> 25 }
>>
>> but it doesn't test hp-ux specific things.
>
> Right, that's old PR8595 - environ.exp could run on more platforms:
> https://sourceware.org/bugzilla/show_bug.cgi?id=8595
>
>> It overlaps
>> gdb.base/testenv.exp in what it tests, but it does test a few more
>> things (like having an equal sign in the value when setting an env
>> var). Removing the guard, it seems like the test runs fine on Linux
>> native. It does not run fine with
>> native-gdbserver/native-extended-gdbserver, however. So I could
>> replace it with the appropriate "if not remote" check.
>> gdb.base/testenv.exp uses "if { [is_remote target] }", but it's not
>> right, because it doesn't catch when running with
>> native-extended-gdbserver.
>
> Right. I think most is_remote checks are wrong. This is really
> a protocol limitation, a bit orthogonal to protocol used or whether
> the host and target machines are the same. Probably the right
> check is:
>
> [target_info gdb_protocol] == "remote" || [target_info gdb_protocol] == "extended-remote"
>
> Better yet, add a new supports_target_env or some such to lib/gdb.exp
> that encapsulates this.
>
>>
>> So for now I think I'll just leave it as-is, and we can merge the two
>> tests and clean this up after.
>>
>
> That's fine. It waited over 12 years already, it can wait a
> little while longer. :-)
>
> Thanks,
> Pedro Alves
Ok, I pushed this one in. Thanks!
next prev parent reply other threads:[~2015-12-21 17:53 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-19 23:30 [PATCH 1/3] Remove HP-UX reference in testsuite/configure.ac Simon Marchi
2015-12-19 23:31 ` [PATCH 3/3] Remove HP-UX references fom testsuite Simon Marchi
2015-12-20 5:08 ` Joel Brobecker
2015-12-20 15:45 ` Simon Marchi
2015-12-21 12:48 ` Pedro Alves
2015-12-21 16:57 ` Simon Marchi
2015-12-21 17:07 ` Pedro Alves
2015-12-21 17:53 ` Simon Marchi [this message]
2016-01-08 19:30 ` [testsuite patch] i386 regression for funcargs.exp [Re: [PATCH 3/3] Remove HP-UX references fom testsuite] Jan Kratochvil
2016-01-08 21:15 ` Simon Marchi
2016-01-11 13:38 ` Pedro Alves
2016-01-11 21:29 ` [commit] " Jan Kratochvil
2015-12-20 4:49 ` [PATCH 1/3] Remove HP-UX reference in testsuite/configure.ac Joel Brobecker
2015-12-20 15:00 ` Simon Marchi
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=CAFXXi0nz4PUiOH5yNVeU_qYX4+giNEC11A1v3a4Nhe3CNeXqwg@mail.gmail.com \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=palves@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