forked from Imagelibrary/binutils-gdb
* python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
(find_pretty_printer): Fix comments.
This commit is contained in:
@@ -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>
|
2010-11-04 Hui Zhu <teawater@gmail.com>
|
||||||
|
|
||||||
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
|
* tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ find_pretty_printer_from_gdb (PyObject *value)
|
|||||||
PyObject *pp_list;
|
PyObject *pp_list;
|
||||||
PyObject *function;
|
PyObject *function;
|
||||||
|
|
||||||
/* Fetch the global pretty printer dictionary. */
|
/* Fetch the global pretty printer list. */
|
||||||
if (! PyObject_HasAttrString (gdb_module, "pretty_printers"))
|
if (! PyObject_HasAttrString (gdb_module, "pretty_printers"))
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
pp_list = PyObject_GetAttrString (gdb_module, "pretty_printers");
|
pp_list = PyObject_GetAttrString (gdb_module, "pretty_printers");
|
||||||
@@ -173,20 +173,20 @@ find_pretty_printer (PyObject *value)
|
|||||||
{
|
{
|
||||||
PyObject *function;
|
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. */
|
in the current program-space. */
|
||||||
function = find_pretty_printer_from_objfiles (value);
|
function = find_pretty_printer_from_objfiles (value);
|
||||||
if (function == NULL || function != Py_None)
|
if (function == NULL || function != Py_None)
|
||||||
return function;
|
return function;
|
||||||
Py_DECREF (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);
|
function = find_pretty_printer_from_progspace (value);
|
||||||
if (function == NULL || function != Py_None)
|
if (function == NULL || function != Py_None)
|
||||||
return function;
|
return function;
|
||||||
Py_DECREF (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);
|
function = find_pretty_printer_from_gdb (value);
|
||||||
return function;
|
return function;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user