Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Associate dummy_frame with ptid
Date: Thu, 26 Jun 2014 13:19:00 -0000	[thread overview]
Message-ID: <53AC1DEF.2010907@redhat.com> (raw)
In-Reply-To: <1403775882-1311-1-git-send-email-yao@codesourcery.com>

Hi Yao,

Thanks for tackling this.

On 06/26/2014 10:44 AM, Yao Qi wrote:

> +if {[prepare_for_testing $testfile.exp $testfile $srcfile {nowarnings debug}]} {

Any reason for "nowarnings" ?  It just sounds like copy/paste, as the test
has no dependencies/includes, even.

> +    return -1
> +}
> +
> +# Inferior 1 stops at f1.
> +
> +if ![runto f1] then {
> +    fail "Can't run to f1"
> +    return 0
> +}
> +
> +gdb_test "add-inferior -exec ${binfile}" \
> +    "Added inferior 2.*" \
> +    "add inferior 2 with -exec ${executable}"
> +gdb_test "inferior 2" "witching to inferior 2 .*" ""

Lots of tests in this file are silent.  Any reason for that?

> +gdb_test "run" "Breakpoint.* f1 .*" "start to f1 inferior 2"
> +gdb_breakpoint f2
> +# Inferior 2 stops at f2.
> +gdb_continue_to_breakpoint f2

Isn't this the same as just "runto f2" ?

> +
> +gdb_breakpoint commonfun
> +
> +# Check the stack bactrace in inferior INF.

This doesn't document MSG, which I'd assume to be the
test message.  But, it's actually used as message prefix.
So it seems the parameter is misnamed.

> +
> +proc check_bt { inf msg } {
> +    with_test_prefix "$msg" {
> +	gdb_test "bt 1" "#0  f$inf .*" "bt in inferior $inf"
> +    }
> +}
> +

Otherwise looks good to me.

-- 
Pedro Alves


  reply	other threads:[~2014-06-26 13:19 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26  9:46 Yao Qi
2014-06-26 13:19 ` Pedro Alves [this message]
2014-06-27 12:05   ` Yao Qi
2014-06-27 18:32     ` Pedro Alves
2014-06-26 13:26 ` Pedro Alves

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=53AC1DEF.2010907@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.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