Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit] New Ada testcase for breakpoints on operators.
Date: Thu, 19 Jul 2012 07:59:00 -0000	[thread overview]
Message-ID: <m2629kkwqj.fsf@igel.home> (raw)
In-Reply-To: <1330720677-10606-1-git-send-email-brobecker@adacore.com> (Joel	Brobecker's message of "Fri, 2 Mar 2012 12:37:57 -0800")

Joel Brobecker <brobecker@adacore.com> writes:

> +# Set breakpoints for all operators, using just the operator name in quotes.
> +
> +foreach op { "+" "-" } {
> +    set op_re [string_to_regexp $op]
> +    gdb_test "break \"$op\"" \
> +             "Breakpoint $decimal at $hex: \"$op_re\"\. \\(2 locations\\)"
> +}

(gdb) break "+"
Breakpoint 2 at 0x100018cc: "+". (4 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "+"
break "-"
Breakpoint 3 at 0x100018f4: "-". (4 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "-"
break "*"

> +foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
> +    set op_re [string_to_regexp $op]
> +    gdb_test "break \"$op\"" \
> +             "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal."
> +}

break "mod"
Breakpoint 6 at 0x10001514: "mod". (2 locations)
(gdb) FAIL: gdb.ada/operator_bp.exp: break "mod"

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


      reply	other threads:[~2012-07-19  7:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-02 20:38 Joel Brobecker
2012-07-19  7:59 ` Andreas Schwab [this message]

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=m2629kkwqj.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=brobecker@adacore.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