Index: gdb/testsuite/gdb.python/py-prettyprint.c |
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.c b/gdb/testsuite/gdb.python/py-prettyprint.c |
index 0ff7b331daed71e963a8ea5b1ab6ac4e0dc79bea..b1a12b12fb20712e294aaf9533c799e73fa02909 100644 |
--- a/gdb/testsuite/gdb.python/py-prettyprint.c |
+++ b/gdb/testsuite/gdb.python/py-prettyprint.c |
@@ -48,6 +48,10 @@ struct hint_error { |
int x; |
}; |
+struct children_as_list { |
+ int x; |
+}; |
+ |
#ifdef __cplusplus |
struct S : public s { |
int zs; |
@@ -219,6 +223,22 @@ struct nullstr |
struct string_repr string_1 = { { "one" } }; |
struct string_repr string_2 = { { "two" } }; |
+static int |
+eval_func (int p1, int p2, int p3, int p4, int p5, int p6, int p7, int p8) |
+{ |
+ return p1; |
+} |
+ |
+static void |
+eval_sub (void) |
+{ |
+ struct eval_type_s { int x; } eval1 = { 1 }, eval2 = { 2 }, eval3 = { 3 }, |
+ eval4 = { 4 }, eval5 = { 5 }, eval6 = { 6 }, |
+ eval7 = { 7 }, eval8 = { 8 }, eval9 = { 9 }; |
+ |
+ eval1.x++; /* eval-break */ |
+} |
+ |
int |
main () |
{ |
@@ -236,6 +256,7 @@ main () |
struct ns ns, ns2; |
struct lazystring estring, estring2; |
struct hint_error hint_error; |
+ struct children_as_list children_as_list; |
nstype.elements = narray; |
nstype.len = 0; |
@@ -309,5 +330,7 @@ main () |
nstype2 = nstype; |
+ eval_sub (); |
+ |
return 0; /* break to inspect struct and union */ |
} |