mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
* gdb.mi/mi-var-child.c (do_children_tests): Add 'dummy' integer
and 'dummy_ptr' integer pointer. Initialize struct_declarations with dummy_ptr's address. * gdb.mi/var-cmd.c (do_children_tests): Likewise. * gdb.mi/mi-var-child.exp: int_ptr_ptr is now always "editable" on all targets. * gdb.mi/mi2-var-child.exp: Likewise.
This commit is contained in:
@ -1,3 +1,13 @@
|
|||||||
|
2008-01-17 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* gdb.mi/mi-var-child.c (do_children_tests): Add 'dummy' integer
|
||||||
|
and 'dummy_ptr' integer pointer. Initialize struct_declarations
|
||||||
|
with dummy_ptr's address.
|
||||||
|
* gdb.mi/var-cmd.c (do_children_tests): Likewise.
|
||||||
|
* gdb.mi/mi-var-child.exp: int_ptr_ptr is now always "editable" on
|
||||||
|
all targets.
|
||||||
|
* gdb.mi/mi2-var-child.exp: Likewise.
|
||||||
|
|
||||||
2008-01-09 Joel Brobecker <brobecker@adacore.com>
|
2008-01-09 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* gdb.ada/null_array: New test program.
|
* gdb.ada/null_array: New test program.
|
||||||
|
@ -206,8 +206,12 @@ do_children_tests (void)
|
|||||||
int *foo;
|
int *foo;
|
||||||
int bar;
|
int bar;
|
||||||
|
|
||||||
struct _struct_decl struct_declarations;
|
/* Avoid pointing into NULL, as that is editable on some
|
||||||
memset (&struct_declarations, 0, sizeof (struct_declarations));
|
systems. */
|
||||||
|
int dummy;
|
||||||
|
int *dummy_ptr = &dummy;
|
||||||
|
|
||||||
|
struct _struct_decl struct_declarations = { 0, 0, NULL, 0, &dummy_ptr };
|
||||||
weird = &struct_declarations;
|
weird = &struct_declarations;
|
||||||
|
|
||||||
struct_declarations.integer = 123;
|
struct_declarations.integer = 123;
|
||||||
|
@ -682,13 +682,13 @@ mi_gdb_test "-var-show-attributes weird->int_ptr_ptr" \
|
|||||||
# Test: c_variable-4.99
|
# Test: c_variable-4.99
|
||||||
# Desc: is *(weird->int_ptr_ptr) editable
|
# Desc: is *(weird->int_ptr_ptr) editable
|
||||||
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr" \
|
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr" \
|
||||||
"\\^done,attr=\"noneditable\"" \
|
"\\^done,attr=\"editable\"" \
|
||||||
"is weird.int_ptr_ptr.*int_ptr_ptr editable"
|
"is weird.int_ptr_ptr.*int_ptr_ptr editable"
|
||||||
|
|
||||||
# Test: c_variable-4.100
|
# Test: c_variable-4.100
|
||||||
# Desc: is *(*(weird->int_ptr_ptr)) editable
|
# Desc: is *(*(weird->int_ptr_ptr)) editable
|
||||||
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr" \
|
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr" \
|
||||||
"\\^done,attr=\"noneditable\"" \
|
"\\^done,attr=\"editable\"" \
|
||||||
"is weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable"
|
"is weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable"
|
||||||
|
|
||||||
# Test: c_variable-4.101
|
# Test: c_variable-4.101
|
||||||
|
@ -681,13 +681,13 @@ mi_gdb_test "-var-show-attributes weird->int_ptr_ptr" \
|
|||||||
# Test: c_variable-4.99
|
# Test: c_variable-4.99
|
||||||
# Desc: is *(weird->int_ptr_ptr) editable
|
# Desc: is *(weird->int_ptr_ptr) editable
|
||||||
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr" \
|
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr" \
|
||||||
"\\^done,attr=\"noneditable\"" \
|
"\\^done,attr=\"editable\"" \
|
||||||
"is weird.int_ptr_ptr.*int_ptr_ptr editable"
|
"is weird.int_ptr_ptr.*int_ptr_ptr editable"
|
||||||
|
|
||||||
# Test: c_variable-4.100
|
# Test: c_variable-4.100
|
||||||
# Desc: is *(*(weird->int_ptr_ptr)) editable
|
# Desc: is *(*(weird->int_ptr_ptr)) editable
|
||||||
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr" \
|
mi_gdb_test "-var-show-attributes weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr" \
|
||||||
"\\^done,attr=\"noneditable\"" \
|
"\\^done,attr=\"editable\"" \
|
||||||
"is weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable"
|
"is weird.int_ptr_ptr.*int_ptr_ptr.**int_ptr_ptr editable"
|
||||||
|
|
||||||
# Test: c_variable-4.101
|
# Test: c_variable-4.101
|
||||||
|
@ -210,8 +210,12 @@ do_children_tests (void)
|
|||||||
int *foo;
|
int *foo;
|
||||||
int bar;
|
int bar;
|
||||||
|
|
||||||
struct _struct_decl struct_declarations;
|
/* Avoid pointing into NULL, as that is editable on some
|
||||||
memset (&struct_declarations, 0, sizeof (struct_declarations));
|
systems. */
|
||||||
|
int dummy;
|
||||||
|
int *dummy_ptr = &dummy;
|
||||||
|
|
||||||
|
struct _struct_decl struct_declarations = { 0, 0, NULL, 0, &dummy_ptr };
|
||||||
weird = &struct_declarations;
|
weird = &struct_declarations;
|
||||||
|
|
||||||
struct_declarations.integer = 123;
|
struct_declarations.integer = 123;
|
||||||
|
Reference in New Issue
Block a user