aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-11-04 20:18:42 +0000
committerDoug Evans <dje@google.com>2010-11-04 20:18:42 +0000
commit23fa7f66ac5f3ae5ea7c44bf45771e1b666c5ef3 (patch)
tree736445fcf0b9a4542bc139d11df9d8ed89891810
parent03eb1c79d47c095c3777ad8c382723b3b720b733 (diff)
downloadgdb-23fa7f66ac5f3ae5ea7c44bf45771e1b666c5ef3.zip
gdb-23fa7f66ac5f3ae5ea7c44bf45771e1b666c5ef3.tar.gz
gdb-23fa7f66ac5f3ae5ea7c44bf45771e1b666c5ef3.tar.bz2
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
(find_pretty_printer): Fix comments.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/python/py-prettyprint.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5ef6eb2..794fdd6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-04 Doug Evans <dje@google.com>
+
+ * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
+ (find_pretty_printer): Fix comments.
+
2010-11-04 Hui Zhu <teawater@gmail.com>
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c
index 37c4078..afe2b40 100644
--- a/gdb/python/py-prettyprint.c
+++ b/gdb/python/py-prettyprint.c
@@ -149,7 +149,7 @@ find_pretty_printer_from_gdb (PyObject *value)
PyObject *pp_list;
PyObject *function;
- /* Fetch the global pretty printer dictionary. */
+ /* Fetch the global pretty printer list. */
if (! PyObject_HasAttrString (gdb_module, "pretty_printers"))
Py_RETURN_NONE;
pp_list = PyObject_GetAttrString (gdb_module, "pretty_printers");
@@ -173,20 +173,20 @@ find_pretty_printer (PyObject *value)
{
PyObject *function;
- /* Look at the pretty-printer dictionary for each objfile
+ /* Look at the pretty-printer list for each objfile
in the current program-space. */
function = find_pretty_printer_from_objfiles (value);
if (function == NULL || function != Py_None)
return function;
Py_DECREF (function);
- /* Look at the pretty-printer dictionary for the current program-space. */
+ /* Look at the pretty-printer list for the current program-space. */
function = find_pretty_printer_from_progspace (value);
if (function == NULL || function != Py_None)
return function;
Py_DECREF (function);
- /* Look at the pretty-printer dictionary in the gdb module. */
+ /* Look at the pretty-printer list in the gdb module. */
function = find_pretty_printer_from_gdb (value);
return function;
}