Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: debugger/rsp/rsp_packets.cc

Issue 7466014: Add rsp::GetOffsets command + reply (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 #include "debugger/rsp/rsp_common_replies.h" 4 #include "debugger/rsp/rsp_common_replies.h"
5 #include "debugger/rsp/rsp_control_packets.h" 5 #include "debugger/rsp/rsp_control_packets.h"
6 #include "debugger/rsp/rsp_info_packets.h" 6 #include "debugger/rsp/rsp_info_packets.h"
7 #include "debugger/rsp/rsp_packets.h" 7 #include "debugger/rsp/rsp_packets.h"
8 #include "debugger/rsp/rsp_threads_packets.h" 8 #include "debugger/rsp/rsp_threads_packets.h"
9 9
10 namespace { 10 namespace {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 packet_factory_["qC"] = new rsp::GetCurrentThreadCommand; 97 packet_factory_["qC"] = new rsp::GetCurrentThreadCommand;
98 packet_factory_["QC"] = new rsp::GetCurrentThreadReply; 98 packet_factory_["QC"] = new rsp::GetCurrentThreadReply;
99 packet_factory_["c"] = new rsp::ContinueCommand; 99 packet_factory_["c"] = new rsp::ContinueCommand;
100 packet_factory_["s"] = new rsp::StepCommand; 100 packet_factory_["s"] = new rsp::StepCommand;
101 packet_factory_["T"] = new rsp::IsThreadAliveCommand; 101 packet_factory_["T"] = new rsp::IsThreadAliveCommand;
102 packet_factory_["qXfer:features:read:"] = new rsp::QXferFeaturesReadCommand; 102 packet_factory_["qXfer:features:read:"] = new rsp::QXferFeaturesReadCommand;
103 packet_factory_["qXfer$Reply"] = new rsp::QXferReply; 103 packet_factory_["qXfer$Reply"] = new rsp::QXferReply;
104 packet_factory_["qfThreadInfo"] = new rsp::GetThreadInfoCommand; 104 packet_factory_["qfThreadInfo"] = new rsp::GetThreadInfoCommand;
105 packet_factory_["qsThreadInfo"] = new rsp::GetThreadInfoCommand; 105 packet_factory_["qsThreadInfo"] = new rsp::GetThreadInfoCommand;
106 packet_factory_["GetThreadInfo$Reply"] = new rsp::GetThreadInfoReply; 106 packet_factory_["GetThreadInfo$Reply"] = new rsp::GetThreadInfoReply;
107 packet_factory_["qOffsets"] = new rsp::GetOffsetsCommand;
108 packet_factory_["qOffsets$Reply"] = new rsp::GetOffsetsReply;
107 } 109 }
108 110
109 void Packet::FreePacketFactory() { 111 void Packet::FreePacketFactory() {
110 std::map<std::string, rsp::Packet*>::const_iterator it = 112 std::map<std::string, rsp::Packet*>::const_iterator it =
111 packet_factory_.begin(); 113 packet_factory_.begin();
112 while (it != packet_factory_.end()) { 114 while (it != packet_factory_.end()) {
113 delete it->second; 115 delete it->second;
114 ++it; 116 ++it;
115 } 117 }
116 packet_factory_.clear(); 118 packet_factory_.clear();
117 } 119 }
118 } // namespace rsp 120 } // namespace rsp
119 121
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698