Debugger: Beginning of core file support

Operating Systems / Haiku - Ingo Weinhold [gmx.de] - 24 April 2016 11:48 UTC

- DebuggerInterface: Add method IsPostMortem() to be able to descriminate between live and post mortem debugging.
- Add DebuggerInterface implementation CoreFileDebuggerInterface which provides information from a core file.
- TeamDebugger: Don't start the debug event thread when debugging post mortem.
- Debugger: New command line variant "Debugger --core ", which starts a team debugger using the core file.

There are a few issues:
- I didn't see an easy way to integrate with the new TargetHostInterface framework and I didn't want to get into Rene's way changing stuff. As a side effect core file debug windows are not counted and Debugger will quit when only those are left, respectively will additionally open a teams window on start-up.
- There aren't any symbols yet. We can't use the debug kit functionality, since it isn't bitness/endianess agnostic. So either it needs to be adjusted or ported over to Debugger.

1a899ed Debugger: Beginning of core file support
src/apps/debugger/Debugger.cpp | 123 ++++++-
src/apps/debugger/Jamfile | 1 +
src/apps/debugger/controllers/TeamDebugger.cpp | 22 +-
.../debugger_interface/DebuggerInterface.cpp | 10 +
.../debugger_interface/DebuggerInterface.h | 2 +
.../interfaces/CoreFileDebuggerInterface.cpp | 373 ++++++++++++++++++++
.../interfaces/CoreFileDebuggerInterface.h | 91 +++++
7 files changed, 603 insertions(+), 19 deletions(-)

Upstream: cgit.haiku-os.org


  • Share