diff options
author | Paul Koning <pkoning@equallogic.com> | 2011-10-04 17:43:16 +0000 |
---|---|---|
committer | Paul Koning <pkoning@equallogic.com> | 2011-10-04 17:43:16 +0000 |
commit | 687f2a88e792cb7e0b4c1a4f40adc3aec175093f (patch) | |
tree | 420cfaff8c6ddab8f18b729c3fdcbe5b69a5d42b /gdb/testsuite | |
parent | 0dab82e9b3346035364369b2a2cdd15fb929ab54 (diff) | |
download | gdb-687f2a88e792cb7e0b4c1a4f40adc3aec175093f.zip gdb-687f2a88e792cb7e0b4c1a4f40adc3aec175093f.tar.gz gdb-687f2a88e792cb7e0b4c1a4f40adc3aec175093f.tar.bz2 |
* gdb.python/py-value.c (main): Break before return.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-value.c | 5 |
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; } |