Debugger: Add dedicated functions for global {un}init.
commite6687e8f3d62b32df00f7ecace8103ad356e5b7b
authorRene Gollent <rene@gollent.com>
Sun, 29 May 2016 02:58:15 +0000 (28 22:58 -0400)
committerRene Gollent <rene@gollent.com>
Sat, 4 Jun 2016 17:18:37 +0000 (4 13:18 -0400)
tree8ca6af5b2a6eda603a2230684cc101d0b316048e
parent5c8ba745e5d6c3625db91d0cefa4783dcd7c134f
Debugger: Add dedicated functions for global {un}init.

- Add new source file DebuggerGlobals, which contains the relevant
  functions for initializing/destroying the various singleton rosters
  that the core subsystems rely upon. It is the app's responsibility
  to ensure these are called before anything else, and as final cleanup
  at exit.
- The GUI/CLI app objects now take care of initializing the settings factory
  and ValueHandlerRoster, as those are entirely app-specific.
- Refactor calls to init functions appropriately.
src/apps/debugger/Debugger.cpp
src/apps/debugger/DebuggerGlobals.cpp [new file with mode: 0644]
src/apps/debugger/DebuggerGlobals.h [new file with mode: 0644]
src/apps/debugger/Jamfile