summaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-11-13 17:17:55 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-11-13 17:17:55 +0000
commitf6a0c5e5513f3f67b21e1983359ac914e8adf96e (patch)
treea5c21f0fbb31acb45e039854bc799f46cf8593a4 /gdb/python
parentcfe864286059e819abcca7fdc05fdc1dd9c77286 (diff)
downloadgdb-f6a0c5e5513f3f67b21e1983359ac914e8adf96e.tar.gz
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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 5d696c86d3d..19818e63f03 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 ();
}