From: Pedro Alves <palves@redhat.com>
To: Simon Marchi <simon.marchi@polymtl.ca>, gdb-patches@sourceware.org
Subject: Re: [PATCH 3/3] Remove HP-UX references fom testsuite
Date: Mon, 21 Dec 2015 12:48:00 -0000 [thread overview]
Message-ID: <5677F519.2010000@redhat.com> (raw)
In-Reply-To: <1450567845-27030-3-git-send-email-simon.marchi@polymtl.ca>
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."
> +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.
> + pass $name
> }
> }
>
> --- a/gdb/testsuite/gdb.base/display.exp
> +++ b/gdb/testsuite/gdb.base/display.exp
> @@ -194,15 +194,9 @@ gdb_test "print/r j" " = 0x0\[\\r\\n\]+" "debug test output 2a"
> gdb_test "print j" " = 0\[\\r\\n\]+" "debug test output 3"
>
> # x/0 j doesn't produce any output and terminates PA64 process when testing
> -if [istarget "hppa2.0w-hp-hpux11*"] {
> - xfail "'x/0 j' terminates PA64 process - skipped test point"
> -} else {
> - gdb_test_no_output "x/0 j"
> -}
> -if [istarget "hppa*-hp-hpux*"] {
> - # on HP-UX you could access the first page without getting an error
> - gdb_test "x/rx j" ".*(Cannot access|Error accessing) memory.*|.*0xa:\[ \t\]*\[0-9\]+.*"
> -}
> +gdb_test_no_output "x/0 j"
> +
> +gdb_test "x/rx j" ".*(Cannot access|Error accessing) memory.*|.*0xa:\[ \t\]*\[0-9\]+.*"
This last one used to only run on hpux. It seems like it'll now fail
on is_address_zero_readable targets -- the non-error alternative assumes
the variable's value is "0xa" ?
You could guard it with "if [is_address_zero_readable]", but, that
proc does "x 0" internally, so it sounds like it'd be pointless?
> gdb_test "print/0 j" ".*Item count other than 1 is meaningless.*" "print/0 j"
> gdb_test "print/s sum" " = 1000" "ignored s"
> --- a/gdb/testsuite/gdb.dwarf2/pr10770.c
> +++ b/gdb/testsuite/gdb.dwarf2/pr10770.c
> @@ -4,7 +4,6 @@
> /* HP-UX libunwind.so doesn't provide _UA_END_OF_STACK */
> /* { dg-do run } */
> /* { dg-options "-fexceptions" } */
> -/* { dg-skip-if "" { "ia64-*-hpux11.*" } { "*" } { "" } } */
> /* Verify DW_OP_* handling in the unwinder. */
>
> #include <unwind.h>
You should remove the HP-UX reference at the top too then.
But, GDB doesn't use the dg-* markers. Note the comment at the top:
/* This file comes from GCC. If you are tempted to change it,
consider also changing the copy there. */
I'd either leave it be, or, remove the whole dg-* comment block.
Comparing our copy to the gcc copy, that's the only bit that diverged so far:
$ diff -up ~/gdb/mygit/src/gdb/testsuite/gdb.dwarf2/pr10770.c src/gcc/testsuite/gcc.dg/cleanup-13.c
--- /home/pedro/gdb/mygit/src/gdb/testsuite/gdb.dwarf2/pr10770.c 2015-05-08 17:35:43.878768249 +0100
+++ src/gcc/testsuite/gcc.dg/cleanup-13.c 2015-08-22 16:16:35.514064275 +0100
@@ -1,10 +1,8 @@
-/* This file comes from GCC. If you are tempted to change it,
- consider also changing the copy there. */
-
/* HP-UX libunwind.so doesn't provide _UA_END_OF_STACK */
/* { dg-do run } */
/* { dg-options "-fexceptions" } */
/* { dg-skip-if "" { "ia64-*-hpux11.*" } { "*" } { "" } } */
+/* { dg-skip-if "" { ! nonlocal_goto } { "*" } { "" } } */
/* Verify DW_OP_* handling in the unwinder. */
#include <unwind.h>
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-12-21 12:48 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 [this message]
2015-12-21 16:57 ` Simon Marchi
2015-12-21 17:07 ` Pedro Alves
2015-12-21 17:53 ` Simon Marchi
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=5677F519.2010000@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/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