[debugserver] Fix unintialized member variable
Caught by ubsan (__ubsan_handle_load_invalid_value_abort) when running
the unit tests.
GitOrigin-RevId: 8a5af9e28443ce8290388439f9e36cf2727d7761
diff --git a/tools/debugserver/source/RNBContext.h b/tools/debugserver/source/RNBContext.h
index 0b46151..03cd7f3 100644
--- a/tools/debugserver/source/RNBContext.h
+++ b/tools/debugserver/source/RNBContext.h
@@ -46,7 +46,8 @@
RNBContext()
: m_pid(INVALID_NUB_PROCESS), m_pid_stop_count(0),
m_events(0, all_event_bits), m_pid_pthread(), m_launch_status(),
- m_arg_vec(), m_env_vec(), m_detach_on_error(false) {}
+ m_arg_vec(), m_env_vec(), m_detach_on_error(false),
+ m_unmask_signals(false) {}
virtual ~RNBContext();
@@ -148,11 +149,11 @@
std::string m_working_directory;
std::string m_process_event;
bool m_detach_on_error;
+ bool m_unmask_signals;
void StartProcessStatusThread();
void StopProcessStatusThread();
static void *ThreadFunctionProcessStatus(void *arg);
- bool m_unmask_signals;
private:
RNBContext(const RNBContext &rhs) = delete;