mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 11:01:35 +08:00
* python.c (gdbpy_print_stack): Ensure output ends with a newline.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2010-05-19 Doug Evans <dje@google.com>
|
2010-05-19 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* python.c (gdbpy_print_stack): Ensure output ends with a newline.
|
||||||
|
|
||||||
* python.c (source_python_script): Add comment.
|
* python.c (source_python_script): Add comment.
|
||||||
(source_python_script_for_objfile): Remove unnecessary call to
|
(source_python_script_for_objfile): Remove unnecessary call to
|
||||||
gdbpy_print_stack.
|
gdbpy_print_stack.
|
||||||
|
@ -416,7 +416,13 @@ void
|
|||||||
gdbpy_print_stack (void)
|
gdbpy_print_stack (void)
|
||||||
{
|
{
|
||||||
if (gdbpy_should_print_stack)
|
if (gdbpy_should_print_stack)
|
||||||
PyErr_Print ();
|
{
|
||||||
|
PyErr_Print ();
|
||||||
|
/* PyErr_Print doesn't necessarily end output with a newline.
|
||||||
|
This works because Python's stdout/stderr is fed through
|
||||||
|
printf_filtered. */
|
||||||
|
begin_line ();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
PyErr_Clear ();
|
PyErr_Clear ();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user