From: Pedro Alves <palves@redhat.com>
To: Walfred Tedeschi <walfred.tedeschi@intel.com>,
eliz@gnu.org, brobecker@adacore.com
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH V8 1/1] Intel MPX bound violation handling
Date: Wed, 17 Feb 2016 15:51:00 -0000 [thread overview]
Message-ID: <56C49709.5090605@redhat.com> (raw)
In-Reply-To: <1454691524-408-1-git-send-email-walfred.tedeschi@intel.com>
On 02/05/2016 04:58 PM, Walfred Tedeschi wrote:
> diff --git a/gdb/NEWS b/gdb/NEWS
> index d9cbb80..19985bc 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -3,6 +3,20 @@
>
> *** Changes since GDB 7.10
>
> +* Intel MPX bound violation handling.
(Please remember to move this to the 7.11 section.)
>
> static void
> diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
> index 7da31c8..3e9b289 100644
> --- a/gdb/doc/gdb.texinfo
> +++ b/gdb/doc/gdb.texinfo
> @@ -5819,6 +5819,33 @@ $1 = (void *) 0x7ffff7ff7000
> +bounds, while with @code{handle nostop SIGSEGV} no additional
> +information is displayed..
Spurious double period.
> +void
> +i386_linux_handle_segmentation_fault (struct gdbarch *gdbarch,
> + struct ui_out *uiout)
> +{
> + ui_out_text (uiout, _("]"));
> + return;
Remove useless return.
> +set segv_upper_bound "$u_fault.*$gdb_prompt $"
> +
> +set segv_lower_bound "$l_fault.*$gdb_prompt $"
AFAICS, these two are unused now. Remove them.
> +set parameters "print pass nostop"
> +with_test_prefix "$parameters" {
> + if ![runto_main] {
> + fail "could not run to main"
> + return -1
> + }
> +
> + gdb_test "handle SIGSEGV $parameters"\
> + ".*SIGSEGV.*No.*Yes.*Yes.*Segmentation fault.*"\
> + "set parameters"
> +
> + gdb_test "continue" ".*$segv_with_exit.*" "Display"
> +
> + gdb_test "where" "No stack." "no inferior $parameters"
This "$parameters" here will end up producing redundant
test message, given the with_test_prefix already includes
that info. Remove it:
gdb_test "where" "No stack." "no inferior"
Please take look at the resulting gdb.sum file, and check for
other similar cases and fix them.
The code changes are OK with the above issues addressed.
I think you still need to get an OK from Eli, though.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-02-17 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 16:59 Walfred Tedeschi
2016-02-17 15:51 ` Pedro Alves [this message]
2016-02-17 16:32 ` Eli Zaretskii
2016-02-17 16:47 ` Walfred Tedeschi
2016-02-17 20:03 ` Eli Zaretskii
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=56C49709.5090605@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=walfred.tedeschi@intel.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