diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2005-07-27 02:21:16 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2005-07-27 02:21:16 +0000 |
commit | d8d83e9b52d6dfd4c6dc8214dd875fab7a1600e4 (patch) | |
tree | 3aa76255e77c3b1c2179f572eda249b2ffca0e19 /gdb/testsuite/gdb.mi/var-cmd.c | |
parent | 4e660f07292d8dece0cc5fe1e2b0304870380d08 (diff) | |
download | gdb-d8d83e9b52d6dfd4c6dc8214dd875fab7a1600e4.zip gdb-d8d83e9b52d6dfd4c6dc8214dd875fab7a1600e4.tar.gz gdb-d8d83e9b52d6dfd4c6dc8214dd875fab7a1600e4.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.mi/var-cmd.c')
-rw-r--r-- | gdb/testsuite/gdb.mi/var-cmd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.mi/var-cmd.c b/gdb/testsuite/gdb.mi/var-cmd.c index 2a297d2..06b3e35 100644 --- a/gdb/testsuite/gdb.mi/var-cmd.c +++ b/gdb/testsuite/gdb.mi/var-cmd.c @@ -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'; |