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 v2 0/4] Capture GDB debug when running the testsuite


Version 2.
Patch 1 is an expanded version of the one suggested by Tom.  Whilst getting
this working I found some holes in my original code - I updated ui-redirect.exp
to cover this.


This series adds the ability to capture GDB debug when running the testsuite.
For example:
    make check GDB_DEBUG="infrun,remote,serial,jit,frame"

Debug output is saved to gdb.debug in the test directory, along with all of
the gdb output for the test.  I'm hoping this will come in useful for anyone
debugging testsuite runs.

I've fixed up many of the failures that turning debugging on creates, but there
may be more failures when using debug options I've not tested. This should
be easy enough to work around for anyone using the option.

I'll do a follow on patch for the NEWS file and look at updating the wiki.

This is fully compatible with recent GDBSERVER_DEBUG= additions.


Alan Hayward (4):
  Change file close behavior for tee_file
  Add debug redirect option
  testsuite: Add option to capture GDB debug
  testsuite: Disable some tests when logging

 gdb/cli/cli-interp.c                          | 54 +++++++++------
 gdb/cli/cli-interp.h                          | 16 +----
 gdb/cli/cli-logging.c                         | 45 +++++++------
 gdb/disasm.c                                  |  4 +-
 gdb/interps.c                                 |  6 +-
 gdb/interps.h                                 | 10 ++-
 gdb/mi/mi-common.h                            | 14 +++-
 gdb/mi/mi-interp.c                            | 31 +++++++--
 gdb/testsuite/Makefile.in                     |  5 +-
 gdb/testsuite/README                          | 16 +++++
 .../gdb.base/breakpoint-in-ro-region.exp      |  6 ++
 gdb/testsuite/gdb.base/debug-expr.exp         |  6 ++
 gdb/testsuite/gdb.base/foll-fork.exp          |  6 ++
 gdb/testsuite/gdb.base/foll-vfork.exp         |  6 ++
 .../gdb.base/fork-print-inferior-events.exp   |  6 ++
 gdb/testsuite/gdb.base/gdb-sigterm.exp        |  6 ++
 gdb/testsuite/gdb.base/gdbinit-history.exp    |  5 ++
 gdb/testsuite/gdb.base/osabi.exp              |  6 ++
 .../gdb.base/sss-bp-on-user-bp-2.exp          |  6 ++
 gdb/testsuite/gdb.base/ui-redirect.exp        | 67 +++++++++++++++++--
 gdb/testsuite/gdb.gdb/unittest.exp            |  6 ++
 gdb/testsuite/gdb.mi/mi-break.exp             |  9 ++-
 gdb/testsuite/gdb.mi/mi-watch.exp             |  9 ++-
 gdb/testsuite/gdb.mi/new-ui-mi-sync.exp       |  5 ++
 .../gdb.mi/user-selected-context-sync.exp     |  5 ++
 gdb/testsuite/gdb.python/python.exp           |  5 +-
 .../gdb.threads/check-libthread-db.exp        |  6 ++
 ...al-while-stepping-over-bp-other-thread.exp |  6 ++
 .../gdb.threads/stepi-random-signal.exp       |  6 ++
 gdb/testsuite/lib/gdb.exp                     | 54 +++++++++++++++
 gdb/ui-file.c                                 | 11 +--
 gdb/ui-file.h                                 | 15 ++---
 32 files changed, 359 insertions(+), 99 deletions(-)

-- 
2.20.1 (Apple Git-117)


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