This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/9] pagination/readline/async issues


This series fixes PR gdb/17072 (a 7.8 blocker) and other related
issues I stumbled on while fixing it and writing tests.

Some of these fixes are conservative as this is intended for the 7.8
branch as well.

Tested on x86_64 Fedora 20, native and gdbserver.

Comments?

Pedro Alves (9):
  Put the inferior's terminal settings in effect while running (fg)
    infcalls
  Eliminate exceptions.c:print_any_exception.
  Move catch_command_errors and catch_command_errors_const to main.c
  testsuite: Introduce gdb_assert
  Canceling pagination caused by execution command from command line
    aborts readline/gdb
  Background execution + pagination aborts readline/gdb
  Remove the target from the event loop while in secondary prompts
  Fix double prompt
  Put GDB's terminal settings into effect when paginating.

 gdb/exceptions.c                                   |  54 +------
 gdb/exceptions.h                                   |  13 --
 gdb/inf-loop.c                                     |  36 ++---
 gdb/infcall.c                                      |   7 +
 gdb/main.c                                         |  58 +++++++
 .../gdb.base/double-prompt-target-event-error.c    |  23 +++
 .../gdb.base/double-prompt-target-event-error.exp  | 108 +++++++++++++
 gdb/testsuite/gdb.base/execution-termios.c         |  35 +++++
 gdb/testsuite/gdb.base/execution-termios.exp       |  60 +++++++
 .../gdb.base/paginate-after-ctrl-c-running.c       |  23 +++
 .../gdb.base/paginate-after-ctrl-c-running.exp     |  80 ++++++++++
 gdb/testsuite/gdb.base/paginate-bg-execution.c     |  30 ++++
 gdb/testsuite/gdb.base/paginate-bg-execution.exp   | 121 ++++++++++++++
 .../gdb.base/paginate-execution-startup.c          |  30 ++++
 .../gdb.base/paginate-execution-startup.exp        | 175 +++++++++++++++++++++
 gdb/testsuite/gdb.base/paginate-inferior-exit.c    |  30 ++++
 gdb/testsuite/gdb.base/paginate-inferior-exit.exp  |  82 ++++++++++
 gdb/testsuite/gdb.trace/backtrace.exp              |   7 +-
 gdb/testsuite/lib/gdb.exp                          |  82 ++++++++--
 gdb/top.c                                          |  21 ++-
 gdb/utils.c                                        |   4 +
 21 files changed, 977 insertions(+), 102 deletions(-)
 create mode 100644 gdb/testsuite/gdb.base/double-prompt-target-event-error.c
 create mode 100644 gdb/testsuite/gdb.base/double-prompt-target-event-error.exp
 create mode 100644 gdb/testsuite/gdb.base/execution-termios.c
 create mode 100644 gdb/testsuite/gdb.base/execution-termios.exp
 create mode 100644 gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.c
 create mode 100644 gdb/testsuite/gdb.base/paginate-after-ctrl-c-running.exp
 create mode 100644 gdb/testsuite/gdb.base/paginate-bg-execution.c
 create mode 100644 gdb/testsuite/gdb.base/paginate-bg-execution.exp
 create mode 100644 gdb/testsuite/gdb.base/paginate-execution-startup.c
 create mode 100644 gdb/testsuite/gdb.base/paginate-execution-startup.exp
 create mode 100644 gdb/testsuite/gdb.base/paginate-inferior-exit.c
 create mode 100644 gdb/testsuite/gdb.base/paginate-inferior-exit.exp

-- 
1.9.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]