diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-11-13 17:17:57 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-11-13 17:17:57 +0000 |
commit | 269f82e5eb0aa5d5b4c1accc858f95b62bc16df4 (patch) | |
tree | 51c192932bc6432548ab562b654ad7d144357f59 /gdb/python | |
parent | fd6d6815538394e49c70d2df8fd65ebddb05ffbe (diff) | |
download | gdb-269f82e5eb0aa5d5b4c1accc858f95b62bc16df4.zip gdb-269f82e5eb0aa5d5b4c1accc858f95b62bc16df4.tar.gz gdb-269f82e5eb0aa5d5b4c1accc858f95b62bc16df4.tar.bz2 |
gdb/ChangeLog:
2009-11-13 Paul Pluzhnikov <ppluzhnikov@google.com>
* python/py-prettyprint.c (print_string_repr): Suppress
address printing
testsuite/ChangeLog:
2009-11-13 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.python/py-prettyprint.exp: Adjust.
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-prettyprint.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index 5d696c8..19818e6 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -209,7 +209,12 @@ print_string_repr (PyObject *printer, const char *hint, Py_DECREF (py_str); } else if (replacement) - common_val_print (replacement, stream, recurse, options, language); + { + struct value_print_options opts = *options; + + opts.addressprint = 0; + common_val_print (replacement, stream, recurse, &opts, language); + } else gdbpy_print_stack (); } |