Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: <dje@google.com>
Cc: <gdb-patches@sourceware.org>
Subject: Re: [patch] callfuncs.exp: set unwindonsignal on
Date: Sat, 15 Sep 2012 07:40:00 -0000	[thread overview]
Message-ID: <505430A6.8060902@codesourcery.com> (raw)
In-Reply-To: <yjt2sjakqln4.fsf@ruffy2.mtv.corp.google.com>

On 09/15/2012 06:34 AM, dje@google.com wrote:
> Hi.
>
> Testing cvs head with i686 binaries and 64-bit gdb has this failure:
> FAIL: gdb.base/callfuncs.exp: gdb function calls preserve register contents
> [I'm guessing the same failure will be seen with 32-bit native.]
>

This fail was introduced by my patch (sorry),

   [_Complex test 4/4] _Complex tests in callfuncs.exp
   http://sourceware.org/ml/gdb-patches/2011-05/msg00421.html

and it exists on 32-bit native.

>
> Index: callfuncs.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/callfuncs.exp,v
> retrieving revision 1.52
> diff -u -p -r1.52 callfuncs.exp
> --- callfuncs.exp	9 Jul 2012 14:20:52 -0000	1.52
> +++ callfuncs.exp	14 Sep 2012 22:29:09 -0000
> @@ -65,6 +65,10 @@ proc do_function_calls {} {
>       # We need to up this because this can be really slow on some boards.
>       set timeout 60;
>
> +    # If any of these calls segv we don't want to affect subsequent tests.
> +    # E.g., we want to ensure register values are restored.
> +    gdb_test_no_output "set unwindonsignal on"
> +
>       gdb_test "p t_char_values(0,0)" " = 0"
>       gdb_test "p t_char_values('a','b')" " = 1"
>       gdb_test "p t_char_values(char_val1,char_val2)" " = 1"
> @@ -259,6 +263,9 @@ proc do_function_calls {} {
>
>       gdb_test "p t_structs_a(struct_val1)" "= (.unsigned char .. )?<buf.*> \"foo\"" \
>       	"call inferior func with struct - returns char *"
> +
> +    # Restore default value.
> +    gdb_test_no_output "set unwindonsignal off"

The patch looks right to me.  Nitpicking, do we store the original value 
of 'unwindonsignal', and restore it here?  I am wondering people may run 
testsuite with 'unwindonsignal' on in default?

>   }
>
>   # Procedure to get current content of all registers.
>


-- 
Yao


  reply	other threads:[~2012-09-15  7:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14 22:34 dje
2012-09-15  7:40 ` Yao Qi [this message]
2012-09-20 14:55   ` Doug Evans

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=505430A6.8060902@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=dje@google.com \
    --cc=gdb-patches@sourceware.org \
    /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