projects
/
platform
/
upstream
/
gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 7.9
[platform/upstream/gdb.git]
/
gdb
/
testsuite
/
gdb.mi
/
mi-var-child.c
diff --git
a/gdb/testsuite/gdb.mi/mi-var-child.c
b/gdb/testsuite/gdb.mi/mi-var-child.c
index
bde668e
..
3d353c4
100644
(file)
--- a/
gdb/testsuite/gdb.mi/mi-var-child.c
+++ b/
gdb/testsuite/gdb.mi/mi-var-child.c
@@
-1,4
+1,4
@@
-/* Copyright 1999-201
4
Free Software Foundation, Inc.
+/* Copyright 1999-201
5
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-160,6
+160,20
@@
nothing ()
{
}
{
}
+struct _struct_decl
+nothing1 (int a, char *b, long c)
+{
+ struct _struct_decl foo;
+
+ return foo;
+}
+
+struct _struct_decl *
+nothing2 (int a, char *b, long c)
+{
+ return (struct _struct_decl *) 0;
+}
+
void
subroutine1 (int i, long *l)
{
void
subroutine1 (int i, long *l)
{
@@
-231,6
+245,8
@@
do_children_tests (void)
struct_declarations.long_array[9] = 1234;
weird->func_ptr = nothing;
struct_declarations.long_array[9] = 1234;
weird->func_ptr = nothing;
+ weird->func_ptr_struct = nothing1;
+ weird->func_ptr_ptr = nothing2;
struct_declarations.long_array[10] = 3456;
struct_declarations.long_array[11] = 5678;
struct_declarations.long_array[10] = 3456;
struct_declarations.long_array[11] = 5678;