From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Add breakpoint_created observer to update tracepoint_count.
Date: Fri, 09 Nov 2012 09:54:00 -0000 [thread overview]
Message-ID: <509CD2E4.5050808@redhat.com> (raw)
In-Reply-To: <509CB029.6050904@codesourcery.com>
On 11/09/2012 07:26 AM, Yao Qi wrote:
> OK. I adjust test here a little to use MI commands to get the value of
> $tpnum (before and after creating tracepoint) to avoid using regexp.
>
> Committed as below.
Excellent, thanks.
> + mi_create_varobj tpnum \$tpnum "create local variable tpnum"
> + # Test that $tpnum is not set before creating a tracepoint.
> + mi_gdb_test "521-var-evaluate-expression tpnum" \
> + "521\\^done,value=\"void\"" "eval tpnum before tracepoint"
> +
> + mi_gdb_test "522-break-insert -a main" \
> + "522\\^done,bkpt=\{number=\"10\",type=\"tracepoint\".*\"\}" \
> + "break-insert -a operation"
> +
> + mi_gdb_test "523-var-update tpnum" \
> + "523\\^done,changelist=\\\[\{name=\"tpnum\",in_scope=\"true\",type_changed=\"false\",has_more=\"0\"\}\\\]" \
> + "update tpnum"
Interesting that type_changed is false. Looks like a bug.
--
Pedro Alves
prev parent reply other threads:[~2012-11-09 9:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-07 0:50 Yao Qi
2012-11-07 18:13 ` Pedro Alves
2012-11-09 1:09 ` Yao Qi
2012-11-09 2:28 ` Pedro Alves
2012-11-09 7:26 ` Yao Qi
2012-11-09 9:54 ` Pedro Alves [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=509CD2E4.5050808@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