Debugger: Implement remainder of #12729.

Operating Systems / Haiku - Rene Gollent [gollent.com] - 26 April 2016 21:36 UTC

UserInterfaceListener:
- Add request hook for writing a core file. Implement in TeamDebugger.

Jobs/WriteCoreFileJob:- Add new job to actually dispatch the core file request via the debugger interface.

Team{::Listener}
- Add listener event + hook for notifications when a core file gets written. Implement in CLI.

CliContext:
- Add event flag for core file changed.

CommandLineUserInterface:- Add 'write-core' command. This optionally takes a path to write the core to, otherwise one is automatically generated by, similarly to debug reports. As such, one can now generate cores for things like app_server and registrar crashes if desired, in addition to reports.

e2d845a Debugger: Implement remainder of #12729.
src/apps/debugger/Jamfile | 2 +
src/apps/debugger/MessageCodes.h | 1 +
src/apps/debugger/controllers/TeamDebugger.cpp | 32 +++++++++++
src/apps/debugger/controllers/TeamDebugger.h | 4 ++
src/apps/debugger/jobs/Jobs.h | 24 +++++++-
src/apps/debugger/jobs/WriteCoreFileJob.cpp | 58 ++++++++++++++++++++
src/apps/debugger/model/Team.cpp | 29 ++++++++++
src/apps/debugger/model/Team.h | 19 +++++++
src/apps/debugger/user_interface/UserInterface.h | 2 +
.../debugger/user_interface/cli/CliContext.cpp | 11 ++++
src/apps/debugger/user_interface/cli/CliContext.h | 8 ++-
.../cli/CommandLineUserInterface.cpp | 7 ++-
.../cli/commands/CliWriteCoreFileCommand.cpp | 51 +++++++++++++++++
.../cli/commands/CliWriteCoreFileCommand.h | 20 +++++++
src/apps/debugger/user_interface/util/UiUtils.cpp | 19 ++++++-
src/apps/debugger/user_interface/util/UiUtils.h | 5 +-
16 files changed, 284 insertions(+), 8 deletions(-)

Upstream: cgit.haiku-os.org


  • Share