Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Michael Sturm <michael.sturm@intel.com>
Cc: palves@redhat.com, eliz@gnu.org, mark.kettenis@xs4all.nl,
	       walfred.tedeschi@intel.com, gdb-patches@sourceware.org
Subject: Re: [PATCH V5 1/3] Add AVX512 registers support to GDB.
Date: Thu, 24 Apr 2014 11:33:00 -0000	[thread overview]
Message-ID: <5358F69A.5090504@redhat.com> (raw)
In-Reply-To: <1398258160-9070-2-git-send-email-michael.sturm@intel.com>

On 04/23/2014 02:02 PM, Michael Sturm wrote:
> +
> +for { set r 0 } { $r < $nr_regs } { incr r } {
> +    set val [expr $r + 1]
> +    gdb_test "print/x k_data\[$r\]" \
> +        ".. = 0x$val$val$val$val" \
> +        "check contents of k_data\[$r\]"
> +
> +gdb_test "break [gdb_get_line_number "third breakpoint here"]" \
> +    "Breakpoint .* at .*i386-avx512.c.*" \
> +    "set third breakpoint in main"
> +gdb_continue_to_breakpoint "continue to third breakpoint in main"
> +

This bit wasn't addressed -- indentation here and all the way through
below still isn't right.

Ah, actually, it's not really the indentation that is missing.
It's a '}' to close the for loop above that is missing.  So it
looks like the "check contents of k_data\[$r\]" test is only
running for $r == 0.  Then the remainder of the tests
don't actually run $nr_regs times, because there are other loops
within that broken loop that also use $r as iterator:

> +for { set r 0 } { $r < $nr_regs } { incr r } {


> +    gdb_test "print zmm_data\[$r\]" \
> +        ".. = \\{f = \\{[expr $r + 30], [expr $r.125 + 30], [expr $r.25 + 20], [expr $r.375 + 20], [expr $r.5 + 10], [expr $r.625 + 10], [expr $r.75 + 10], [expr $r.875 + 10]\\}\\}.*" \
> +        "check contents of zmm_data\[$r\] after writing XMM regs"
> +}
> +
> +}
> +

This last "}" is closing the broken for loop.  Seems to me it's misplaced.

Other than that, looks fine to me.  Please push with those issues fixed.

-- 
Pedro Alves


  reply	other threads:[~2014-04-24 11:33 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-23 13:03 [PATCH V5 0/3] Intel(R) AVX-512 register support Michael Sturm
2014-04-23 13:03 ` [PATCH V5 2/3] Add AVX512 register support to gdbserver Michael Sturm
2014-11-21 10:21   ` Andreas Arnez
2014-12-13 13:41     ` Joel Brobecker
2015-01-08 10:01       ` Sturm, Michael
2015-01-10  7:00         ` Joel Brobecker
2014-04-23 13:03 ` [PATCH V5 3/3] Add AVX512 feature description to GDB manual Michael Sturm
2013-12-03 12:37   ` [PATCH v3 1/1] Documentation for MPX Walfred Tedeschi
2013-12-03 12:52     ` Eli Zaretskii
2014-08-04 16:57     ` Incorrect placement of two Intel gdb/NEWS items Jan Kratochvil
2014-08-04 19:17       ` Eli Zaretskii
2014-08-04 19:40         ` [commit+7.8] " Jan Kratochvil
2014-04-23 13:04 ` [PATCH V5 1/3] Add AVX512 registers support to GDB Michael Sturm
2014-04-24 11:33   ` Pedro Alves [this message]
2014-04-24 11:48   ` Pedro Alves
2014-04-24 11:49 ` [PATCH V5 0/3] Intel(R) AVX-512 register support 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=5358F69A.5090504@redhat.com \
    --to=palves@redhat.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    --cc=michael.sturm@intel.com \
    --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