Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yufeng Zhang <Yufeng.Zhang@arm.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Doug Evans <dje@google.com>,
	 "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [patchv3] Fix SIGTERM signal safety (PR gdb/15358)
Date: Sun, 23 Mar 2014 15:19:00 -0000	[thread overview]
Message-ID: <532EFB6C.2030003@arm.com> (raw)
In-Reply-To: <20140316135334.GA30698@host2.jankratochvil.net>

On 03/16/14 13:53, Jan Kratochvil wrote:
[snip]
> diff --git a/gdb/testsuite/gdb.base/gdb-sigterm.exp b/gdb/testsuite/gdb.base/gdb-sigterm.exp
> new file mode 100644
> index 0000000..b57680d
> --- /dev/null
> +++ b/gdb/testsuite/gdb.base/gdb-sigterm.exp
> @@ -0,0 +1,96 @@
> +# This testcase is part of GDB, the GNU debugger.
> +#
> +# Copyright 2013 Free Software Foundation, Inc.
> +#
> +# This program is free software; you can redistribute it and/or modify
> +# it under the terms of the GNU General Public License as published by
> +# the Free Software Foundation; either version 3 of the License, or
> +# (at your option) any later version.
> +#
> +# This program is distributed in the hope that it will be useful,
> +# but WITHOUT ANY WARRANTY; without even the implied warranty of
> +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> +# GNU General Public License for more details.
> +#
> +# You should have received a copy of the GNU General Public License
> +# along with this program.  If not, see<http://www.gnu.org/licenses/>.
> +
> +standard_testfile
> +
> +if { [build_executable ${testfile}.exp ${testfile}] == -1 } {
> +    return -1
> +}
> +
> +proc do_test { pass } {
> +    global testfile gdb_prompt binfile pf_prefix
> +
> +    if ![runto_main] {
> +       return -1
> +    }
> +
> +    gdb_breakpoint "${testfile}.c:[gdb_get_line_number "loop-line" ${testfile}.c]" \
> +                  temporary
> +
> +    # gdb_continue_to_breakpoint would print a pass message.
> +    gdb_test "continue" "Temporary breakpoint .* loop-line .*" ""
> +
> +    gdb_test_no_output "set range-stepping off" ""
> +    gdb_test_no_output "set debug infrun 1" ""
> +    gdb_test_no_output "set debug lin-lwp 1" ""

The test fails on aarch64-none-elf.  Should the test only run on Linux 
targets?

Thanks,
Yufeng


  parent reply	other threads:[~2014-03-23 15:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-14 18:37 [patch] Fix SIGTERM signal safety (PR gdb/15358) [refresh] Jan Kratochvil
2014-03-14 18:45 ` [patchv2] " Jan Kratochvil
2014-03-15 19:44   ` Doug Evans
2014-03-16 13:53     ` [patchv3] Fix SIGTERM signal safety (PR gdb/15358) Jan Kratochvil
2014-03-17 22:35       ` Doug Evans
2014-03-18 21:51         ` [commit] " Jan Kratochvil
2014-03-23 15:19       ` Yufeng Zhang [this message]
2014-03-23 16:58         ` Jan Kratochvil
2014-03-24 16:33           ` Yufeng Zhang
2014-03-24 17:11             ` [obv commit] " 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=532EFB6C.2030003@arm.com \
    --to=yufeng.zhang@arm.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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