* python.c (gdbpy_print_stack): Ensure output ends with a newline.
This commit is contained in:
parent
3a1d4620d6
commit
0bf0f8c4cd
2 changed files with 9 additions and 1 deletions
|
@ -416,7 +416,13 @@ void
|
|||
gdbpy_print_stack (void)
|
||||
{
|
||||
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
|
||||
PyErr_Clear ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue