class SessionObserver

Defined at line 16 of file ../../src/developer/debug/zxdb/client/session_observer.h

Public Methods

const char * NotificationTypeToString (NotificationType )

Defined at line 11 of file ../../src/developer/debug/zxdb/client/session_observer.cc

void HandleNotification (NotificationType , const std::string & )

Defined at line 34 of file ../../src/developer/debug/zxdb/client/session_observer.h

void HandlePreviousConnectedProcesses (const std::vector<debug_ipc::ProcessRecord> & )

Defined at line 36 of file ../../src/developer/debug/zxdb/client/session_observer.h

void HandleProcessesInLimbo (const std::vector<debug_ipc::ProcessRecord> & )

Defined at line 38 of file ../../src/developer/debug/zxdb/client/session_observer.h

void DidResolveConnection (const Err & err)

Called when a connection is resolved, either successful or failed.

Defined at line 41 of file ../../src/developer/debug/zxdb/client/session_observer.h

Enumerations

enum NotificationType
Name Value
kNone 0
kError 1
kProcessEnteredLimbo 2
kProcessStderr 3
kProcessStdout 4
kWarning 5

The session can send notifications over to whatever UI is controlling it. This is similar to

what the System does, but permits sending more generic messages and let the UI decide how to

handle, instead of just logging to stdout/stderr.

This is specially important when receiving arbitrary messages from the debug agent and the fact

the the cli console has special states for the terminal state.

Defined at line 24 of file ../../src/developer/debug/zxdb/client/session_observer.h