mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
'hint' if it is NULL.
This commit is contained in:
parent
f4dfd9c05c
commit
f04e4012c7
@ -1,3 +1,8 @@
|
||||
2010-07-09 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
|
||||
'hint' if it is NULL.
|
||||
|
||||
2010-07-09 Hui Zhu <teawater@gmail.com>
|
||||
|
||||
* source.c (print_source_lines_base): Add check for noprint.
|
||||
|
@ -229,10 +229,12 @@ gdbpy_get_display_hint (PyObject *printer)
|
||||
return NULL;
|
||||
|
||||
hint = PyObject_CallMethodObjArgs (printer, gdbpy_display_hint_cst, NULL);
|
||||
if (gdbpy_is_string (hint))
|
||||
result = python_string_to_host_string (hint);
|
||||
if (hint)
|
||||
Py_DECREF (hint);
|
||||
{
|
||||
if (gdbpy_is_string (hint))
|
||||
result = python_string_to_host_string (hint);
|
||||
Py_DECREF (hint);
|
||||
}
|
||||
else
|
||||
gdbpy_print_stack ();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user