This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] minor comment fixes in py-prettyprint.c
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Thu, 4 Nov 2010 13:20:25 -0700 (PDT)
- Subject: [commit] minor comment fixes in py-prettyprint.c
Hi.
fyi, I checked this in.
Pretty printers are recorded in lists, not dictionaries.
2010-11-04 Doug Evans <dje@google.com>
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
(find_pretty_printer): Fix comments.
Index: python/py-prettyprint.c
===================================================================
RCS file: /cvs/src/src/gdb/python/py-prettyprint.c,v
retrieving revision 1.16
diff -u -p -r1.16 py-prettyprint.c
--- python/py-prettyprint.c 15 Oct 2010 18:54:13 -0000 1.16
+++ python/py-prettyprint.c 4 Nov 2010 20:17:10 -0000
@@ -149,7 +149,7 @@ find_pretty_printer_from_gdb (PyObject *
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;
}