Author: jmolenda Date: Thu May 14 19:19:28 2015 New Revision: 237411 URL: http://llvm.org/viewvc/llvm-project?rev=237411&view=rev Log: The StopInfo base class has an m_description std::string. Remove the m_description ivar from the StopInfoBreakpoint and StopInfoWatchpoint subclasses of StopInfo. Also, initialize the m_description ivar in the StopInfo ctor. <rdar://problem/20902950>
Modified: lldb/trunk/source/Target/StopInfo.cpp Modified: lldb/trunk/source/Target/StopInfo.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/StopInfo.cpp?rev=237411&r1=237410&r2=237411&view=diff ============================================================================== --- lldb/trunk/source/Target/StopInfo.cpp (original) +++ lldb/trunk/source/Target/StopInfo.cpp Thu May 14 19:19:28 2015 @@ -40,6 +40,7 @@ StopInfo::StopInfo (Thread &thread, uint m_stop_id (thread.GetProcess()->GetStopID()), m_resume_id (thread.GetProcess()->GetResumeID()), m_value (value), + m_description (), m_override_should_notify (eLazyBoolCalculate), m_override_should_stop (eLazyBoolCalculate), m_extended_info() @@ -112,7 +113,6 @@ class StopInfoBreakpoint : public StopIn public: StopInfoBreakpoint (Thread &thread, break_id_t break_id) : StopInfo (thread, break_id), - m_description(), m_should_stop (false), m_should_stop_is_valid (false), m_should_perform_action (true), @@ -125,7 +125,6 @@ public: StopInfoBreakpoint (Thread &thread, break_id_t break_id, bool should_stop) : StopInfo (thread, break_id), - m_description(), m_should_stop (should_stop), m_should_stop_is_valid (true), m_should_perform_action (true), @@ -568,7 +567,6 @@ protected: } private: - std::string m_description; bool m_should_stop; bool m_should_stop_is_valid; bool m_should_perform_action; // Since we are trying to preserve the "state" of the system even if we run functions @@ -621,7 +619,6 @@ public: StopInfoWatchpoint (Thread &thread, break_id_t watch_id) : StopInfo(thread, watch_id), - m_description(), m_should_stop(false), m_should_stop_is_valid(false) { @@ -860,7 +857,6 @@ protected: } private: - std::string m_description; bool m_should_stop; bool m_should_stop_is_valid; }; _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits