List Info

Thread: mi-var-child failures




mi-var-child failures
country flaguser name
United States
2008-01-15 10:50:26
Nick,
it seems like your recent patch for 'noneditable' attribute
makes some tests to be non-deterministic. Specifically, we
get those failures on embedded targets:

	-PASS: gdb.mi/mi2-var-child.exp: is
weird.int_ptr_ptr.*int_ptr_ptr editable
	-PASS: gdb.mi/mi2-var-child.exp: is
weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable
	+FAIL: gdb.mi/mi2-var-child.exp: is
weird.int_ptr_ptr.*int_ptr_ptr editable
	+FAIL: gdb.mi/mi2-var-child.exp: is
weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable

What's happening here is that we have pointer initialized to
NULL, and
create a varobj for the dereferenced pointer, and get its
attributes.
Now, on Linux we can't dereference NULL pointer, so that
value stored in
varobj ends up being NULL, and we return the value is not
editable.
On embedded system, you might be allowed to access NULL
pointer, and in
that case varobj is editable.

This is not a problem with GDB -- it's acting right, so FAIL
on embedded target
is not indicative of a problem. I think we get to fix the
testcase itself.

Mind if I make the pointer point to valid memory on all
systems?

- Volodya

Re: mi-var-child failures
user name
2008-01-15 15:28:01
 > This is not a problem with GDB -- it's acting right,
so FAIL on embedded
 > target is not indicative of a problem. I think we get
to fix the testcase
 > itself.
 > 
 > Mind if I make the pointer point to valid memory on
all systems?

That seems sensible to me.

-- 
Nick                                           http://www.inet.net.n
z/~nickrob

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )