forked from Imagelibrary/binutils-gdb
* gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.
(do_children_tests): Assign values to the extra elements. * gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use them for tests for "-var-update --no-values" and "-var-update --all-values". Add test for "-var-list-children --simple-values". * gdb.mi/basics.c (callee4): Add integer array D[3]... * gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test "-stack-list-locals --simple-values" Improve doc strings and comments.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright 1999, 2004 Free Software Foundation, Inc.
|
||||
/* Copyright 1999, 2004, 2005 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GDB.
|
||||
|
||||
@@ -51,7 +51,7 @@ typedef struct _struct_decl {
|
||||
char *char_ptr;
|
||||
long long_int;
|
||||
int **int_ptr_ptr;
|
||||
long long_array[10];
|
||||
long long_array[12];
|
||||
|
||||
void (*func_ptr) (void);
|
||||
struct _struct_decl (*func_ptr_struct) (int, char *, long);
|
||||
@@ -227,6 +227,8 @@ do_children_tests (void)
|
||||
struct_declarations.long_array[9] = 1234;
|
||||
|
||||
weird->func_ptr = nothing;
|
||||
struct_declarations.long_array[10] = 3456;
|
||||
struct_declarations.long_array[11] = 5678;
|
||||
|
||||
/* Struct/pointer/array tests */
|
||||
a0 = '0';
|
||||
|
||||
Reference in New Issue
Block a user