This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add breakpoint_created observer to update tracepoint_count.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]