aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-value.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 125316e..68aa02a 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2011-10-04 Paul Koning <paul_koning@dell.com>
+
+ * gdb.python/py-value.c (main): Break before return.
+
2011-10-04 Kevin Pouget <kevin.pouget@st.com>
PR python/12691: Add the inferior to Python exited event
diff --git a/gdb/testsuite/gdb.python/py-value.c b/gdb/testsuite/gdb.python/py-value.c
index b6bc0f7..1766b56 100644
--- a/gdb/testsuite/gdb.python/py-value.c
+++ b/gdb/testsuite/gdb.python/py-value.c
@@ -66,6 +66,8 @@ int func2 (int arg1, int arg2)
return arg1 + arg2;
}
+char **save_argv;
+
int
main (int argc, char *argv[])
{
@@ -94,5 +96,6 @@ main (int argc, char *argv[])
ptr_ref(ptr_i);
#endif
- return 0; /* break to inspect struct and union */
+ save_argv = argv; /* break to inspect struct and union */
+ return 0;
}