140
143
&& (ignore_number == BI.ignore_number) && (conditions == BI.conditions) && (commandlist == BI.commandlist) && (is_temp == BI.is_temp)
141
144
&& (bp_type==BP_type_watchpt ? (watchpoint_type == BI.watchpoint_type) : true) && (!function_name.IsEmpty() ? (regex == BI.regex) : true));
148
// SerializedObject interface
149
virtual void Serialize(Archive& arch) {
150
arch.Write(wxT("file"), file);
151
arch.Write(wxT("lineno"), lineno);
152
arch.Write(wxT("function_name"), function_name);
153
arch.Write(wxT("memory_address"), memory_address);
154
arch.Write(wxT("bp_type"), bp_type);
155
arch.Write(wxT("watchpoint_type"), watchpoint_type);
156
arch.Write(wxT("watchpt_data"), watchpt_data);
157
arch.Write(wxT("commandlist"), commandlist);
158
arch.Write(wxT("regex"), regex);
159
arch.Write(wxT("is_temp"), is_temp);
160
arch.Write(wxT("internal_id"), internal_id);
161
arch.Write(wxT("debugger_id"), debugger_id);
162
arch.Write(wxT("is_enabled"), is_enabled);
163
arch.Write(wxT("ignore_number"), (int)ignore_number);
164
arch.Write(wxT("conditions"), conditions);
167
virtual void DeSerialize(Archive& arch) {
168
arch.Read(wxT("file"), file);
169
arch.Read(wxT("lineno"), lineno);
170
arch.Read(wxT("function_name"), function_name);
171
arch.Read(wxT("memory_address"), memory_address);
172
arch.Read(wxT("bp_type"), (int&)bp_type);
173
arch.Read(wxT("watchpoint_type"), (int&)watchpoint_type);
174
arch.Read(wxT("watchpt_data"), watchpt_data);
175
arch.Read(wxT("commandlist"), commandlist);
176
arch.Read(wxT("regex"), regex);
177
arch.Read(wxT("is_temp"), is_temp);
178
arch.Read(wxT("internal_id"), internal_id);
179
arch.Read(wxT("debugger_id"), debugger_id);
180
arch.Read(wxT("is_enabled"), is_enabled);
181
arch.Read(wxT("ignore_number"), (int&)ignore_number);
182
arch.Read(wxT("conditions"), conditions);
188
* @class BreakpointInfoArray a wrapper class to allow saving and reading breakpoint array to and
195
class BreakpointInfoArray : public SerializedObject
197
std::vector<BreakpointInfo> m_breakpoints;
199
BreakpointInfoArray() {
202
virtual ~BreakpointInfoArray() {
205
BreakpointInfoArray& operator=(const std::vector<BreakpointInfo> &breakpoints) {
206
m_breakpoints = breakpoints;
210
void SetBreakpoints(const std::vector<BreakpointInfo>& breakpoints) {
211
this->m_breakpoints = breakpoints;
213
const std::vector<BreakpointInfo>& GetBreakpoints() const {
214
return m_breakpoints;
218
virtual void DeSerialize(Archive& arch) {
221
m_breakpoints.clear();
222
arch.Read(wxT("Count"), bt_count);
224
for (size_t i=0; i<bt_count; i++) {
225
wxString name = wxString::Format(wxT("Breakpoint%d"), i);
227
arch.Read(name, (SerializedObject*)&bkpt);
228
m_breakpoints.push_back( bkpt );
232
virtual void Serialize(Archive &arch) {
234
arch.Write(wxT("Count"), (size_t)m_breakpoints.size());
235
for (size_t i=0; i<m_breakpoints.size(); i++) {
236
wxString name = wxString::Format(wxT("Breakpoint%d"), i);
237
arch.Write(name, (SerializedObject*)&m_breakpoints.at(i));
145
243
class DebuggerInformation