1 //===-- GDBRemoteCommunicationClient.h --------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H 10 #define LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H 11 12 #include "GDBRemoteClientBase.h" 13 14 #include <chrono> 15 #include <map> 16 #include <mutex> 17 #include <string> 18 #include <vector> 19 20 #include "lldb/Host/File.h" 21 #include "lldb/Utility/ArchSpec.h" 22 #include "lldb/Utility/GDBRemote.h" 23 #include "lldb/Utility/StructuredData.h" 24 #if defined(_WIN32) 25 #include "lldb/Host/windows/PosixApi.h" 26 #endif 27 28 #include "llvm/ADT/Optional.h" 29 #include "llvm/Support/VersionTuple.h" 30 31 namespace lldb_private { 32 namespace process_gdb_remote { 33 34 /// The offsets used by the target when relocating the executable. Decoded from 35 /// qOffsets packet response. 36 struct QOffsets { 37 /// If true, the offsets field describes segments. Otherwise, it describes 38 /// sections. 39 bool segments; 40 41 /// The individual offsets. Section offsets have two or three members. 42 /// Segment offsets have either one of two. 43 std::vector<uint64_t> offsets; 44 }; 45 inline bool operator==(const QOffsets &a, const QOffsets &b) { 46 return a.segments == b.segments && a.offsets == b.offsets; 47 } 48 llvm::raw_ostream &operator<<(llvm::raw_ostream &os, const QOffsets &offsets); 49 50 class GDBRemoteCommunicationClient : public GDBRemoteClientBase { 51 public: 52 GDBRemoteCommunicationClient(); 53 54 ~GDBRemoteCommunicationClient() override; 55 56 // After connecting, send the handshake to the server to make sure 57 // we are communicating with it. 58 bool HandshakeWithServer(Status *error_ptr); 59 60 // For packets which specify a range of output to be returned, 61 // return all of the output via a series of request packets of the form 62 // <prefix>0,<size> 63 // <prefix><size>,<size> 64 // <prefix><size>*2,<size> 65 // <prefix><size>*3,<size> 66 // ... 67 // until a "$l..." packet is received, indicating the end. 68 // (size is in hex; this format is used by a standard gdbserver to 69 // return the given portion of the output specified by <prefix>; 70 // for example, "qXfer:libraries-svr4:read::fff,1000" means 71 // "return a chunk of the xml description file for shared 72 // library load addresses, where the chunk starts at offset 0xfff 73 // and continues for 0x1000 bytes"). 74 // Concatenate the resulting server response packets together and 75 // return in response_string. If any packet fails, the return value 76 // indicates that failure and the returned string value is undefined. 77 PacketResult 78 SendPacketsAndConcatenateResponses(const char *send_payload_prefix, 79 std::string &response_string); 80 81 bool GetThreadSuffixSupported(); 82 83 // This packet is usually sent first and the boolean return value 84 // indicates if the packet was send and any response was received 85 // even in the response is UNIMPLEMENTED. If the packet failed to 86 // get a response, then false is returned. This quickly tells us 87 // if we were able to connect and communicate with the remote GDB 88 // server 89 bool QueryNoAckModeSupported(); 90 91 void GetListThreadsInStopReplySupported(); 92 93 lldb::pid_t GetCurrentProcessID(bool allow_lazy = true); 94 95 bool GetLaunchSuccess(std::string &error_str); 96 97 bool LaunchGDBServer(const char *remote_accept_hostname, lldb::pid_t &pid, 98 uint16_t &port, std::string &socket_name); 99 100 size_t QueryGDBServer( 101 std::vector<std::pair<uint16_t, std::string>> &connection_urls); 102 103 bool KillSpawnedProcess(lldb::pid_t pid); 104 105 /// Sends a GDB remote protocol 'A' packet that delivers program 106 /// arguments to the remote server. 107 /// 108 /// \param[in] launch_info 109 /// A NULL terminated array of const C strings to use as the 110 /// arguments. 111 /// 112 /// \return 113 /// Zero if the response was "OK", a positive value if the 114 /// the response was "Exx" where xx are two hex digits, or 115 /// -1 if the call is unsupported or any other unexpected 116 /// response was received. 117 int SendArgumentsPacket(const ProcessLaunchInfo &launch_info); 118 119 /// Sends a "QEnvironment:NAME=VALUE" packet that will build up the 120 /// environment that will get used when launching an application 121 /// in conjunction with the 'A' packet. This function can be called 122 /// multiple times in a row in order to pass on the desired 123 /// environment that the inferior should be launched with. 124 /// 125 /// \param[in] name_equal_value 126 /// A NULL terminated C string that contains a single environment 127 /// in the format "NAME=VALUE". 128 /// 129 /// \return 130 /// Zero if the response was "OK", a positive value if the 131 /// the response was "Exx" where xx are two hex digits, or 132 /// -1 if the call is unsupported or any other unexpected 133 /// response was received. 134 int SendEnvironmentPacket(char const *name_equal_value); 135 int SendEnvironment(const Environment &env); 136 137 int SendLaunchArchPacket(const char *arch); 138 139 int SendLaunchEventDataPacket(const char *data, 140 bool *was_supported = nullptr); 141 142 /// Sends a "vAttach:PID" where PID is in hex. 143 /// 144 /// \param[in] pid 145 /// A process ID for the remote gdb server to attach to. 146 /// 147 /// \param[out] response 148 /// The response received from the gdb server. If the return 149 /// value is zero, \a response will contain a stop reply 150 /// packet. 151 /// 152 /// \return 153 /// Zero if the attach was successful, or an error indicating 154 /// an error code. 155 int SendAttach(lldb::pid_t pid, StringExtractorGDBRemote &response); 156 157 /// Sends a GDB remote protocol 'I' packet that delivers stdin 158 /// data to the remote process. 159 /// 160 /// \param[in] data 161 /// A pointer to stdin data. 162 /// 163 /// \param[in] data_len 164 /// The number of bytes available at \a data. 165 /// 166 /// \return 167 /// Zero if the attach was successful, or an error indicating 168 /// an error code. 169 int SendStdinNotification(const char *data, size_t data_len); 170 171 /// Sets the path to use for stdin/out/err for a process 172 /// that will be launched with the 'A' packet. 173 /// 174 /// \param[in] file_spec 175 /// The path to use for stdin/out/err 176 /// 177 /// \return 178 /// Zero if the for success, or an error code for failure. 179 int SetSTDIN(const FileSpec &file_spec); 180 int SetSTDOUT(const FileSpec &file_spec); 181 int SetSTDERR(const FileSpec &file_spec); 182 183 /// Sets the disable ASLR flag to \a enable for a process that will 184 /// be launched with the 'A' packet. 185 /// 186 /// \param[in] enable 187 /// A boolean value indicating whether to disable ASLR or not. 188 /// 189 /// \return 190 /// Zero if the for success, or an error code for failure. 191 int SetDisableASLR(bool enable); 192 193 /// Sets the DetachOnError flag to \a enable for the process controlled by the 194 /// stub. 195 /// 196 /// \param[in] enable 197 /// A boolean value indicating whether to detach on error or not. 198 /// 199 /// \return 200 /// Zero if the for success, or an error code for failure. 201 int SetDetachOnError(bool enable); 202 203 /// Sets the working directory to \a path for a process that will 204 /// be launched with the 'A' packet for non platform based 205 /// connections. If this packet is sent to a GDB server that 206 /// implements the platform, it will change the current working 207 /// directory for the platform process. 208 /// 209 /// \param[in] working_dir 210 /// The path to a directory to use when launching our process 211 /// 212 /// \return 213 /// Zero if the for success, or an error code for failure. 214 int SetWorkingDir(const FileSpec &working_dir); 215 216 /// Gets the current working directory of a remote platform GDB 217 /// server. 218 /// 219 /// \param[out] working_dir 220 /// The current working directory on the remote platform. 221 /// 222 /// \return 223 /// Boolean for success 224 bool GetWorkingDir(FileSpec &working_dir); 225 226 lldb::addr_t AllocateMemory(size_t size, uint32_t permissions); 227 228 bool DeallocateMemory(lldb::addr_t addr); 229 230 Status Detach(bool keep_stopped); 231 232 Status GetMemoryRegionInfo(lldb::addr_t addr, MemoryRegionInfo &range_info); 233 234 Status GetWatchpointSupportInfo(uint32_t &num); 235 236 Status GetWatchpointSupportInfo(uint32_t &num, bool &after, 237 const ArchSpec &arch); 238 239 Status GetWatchpointsTriggerAfterInstruction(bool &after, 240 const ArchSpec &arch); 241 242 const ArchSpec &GetHostArchitecture(); 243 244 std::chrono::seconds GetHostDefaultPacketTimeout(); 245 246 const ArchSpec &GetProcessArchitecture(); 247 248 void GetRemoteQSupported(); 249 250 bool GetVContSupported(char flavor); 251 252 bool GetpPacketSupported(lldb::tid_t tid); 253 254 bool GetxPacketSupported(); 255 256 bool GetVAttachOrWaitSupported(); 257 258 bool GetSyncThreadStateSupported(); 259 260 void ResetDiscoverableSettings(bool did_exec); 261 262 bool GetHostInfo(bool force = false); 263 264 bool GetDefaultThreadId(lldb::tid_t &tid); 265 266 llvm::VersionTuple GetOSVersion(); 267 268 llvm::VersionTuple GetMacCatalystVersion(); 269 270 bool GetOSBuildString(std::string &s); 271 272 bool GetOSKernelDescription(std::string &s); 273 274 ArchSpec GetSystemArchitecture(); 275 276 bool GetHostname(std::string &s); 277 278 lldb::addr_t GetShlibInfoAddr(); 279 280 bool GetSupportsThreadSuffix(); 281 282 bool GetProcessInfo(lldb::pid_t pid, ProcessInstanceInfo &process_info); 283 284 uint32_t FindProcesses(const ProcessInstanceInfoMatch &process_match_info, 285 ProcessInstanceInfoList &process_infos); 286 287 bool GetUserName(uint32_t uid, std::string &name); 288 289 bool GetGroupName(uint32_t gid, std::string &name); 290 291 bool HasFullVContSupport() { return GetVContSupported('A'); } 292 293 bool HasAnyVContSupport() { return GetVContSupported('a'); } 294 295 bool GetStopReply(StringExtractorGDBRemote &response); 296 297 bool GetThreadStopInfo(lldb::tid_t tid, StringExtractorGDBRemote &response); 298 299 bool SupportsGDBStoppointPacket(GDBStoppointType type) { 300 switch (type) { 301 case eBreakpointSoftware: 302 return m_supports_z0; 303 case eBreakpointHardware: 304 return m_supports_z1; 305 case eWatchpointWrite: 306 return m_supports_z2; 307 case eWatchpointRead: 308 return m_supports_z3; 309 case eWatchpointReadWrite: 310 return m_supports_z4; 311 default: 312 return false; 313 } 314 } 315 316 uint8_t SendGDBStoppointTypePacket( 317 GDBStoppointType type, // Type of breakpoint or watchpoint 318 bool insert, // Insert or remove? 319 lldb::addr_t addr, // Address of breakpoint or watchpoint 320 uint32_t length); // Byte Size of breakpoint or watchpoint 321 322 bool SetNonStopMode(const bool enable); 323 324 void TestPacketSpeed(const uint32_t num_packets, uint32_t max_send, 325 uint32_t max_recv, uint64_t recv_amount, bool json, 326 Stream &strm); 327 328 // This packet is for testing the speed of the interface only. Both 329 // the client and server need to support it, but this allows us to 330 // measure the packet speed without any other work being done on the 331 // other end and avoids any of that work affecting the packet send 332 // and response times. 333 bool SendSpeedTestPacket(uint32_t send_size, uint32_t recv_size); 334 335 bool SetCurrentThread(uint64_t tid); 336 337 bool SetCurrentThreadForRun(uint64_t tid); 338 339 bool GetQXferAuxvReadSupported(); 340 341 void EnableErrorStringInPacket(); 342 343 bool GetQXferLibrariesReadSupported(); 344 345 bool GetQXferLibrariesSVR4ReadSupported(); 346 347 uint64_t GetRemoteMaxPacketSize(); 348 349 bool GetEchoSupported(); 350 351 bool GetQPassSignalsSupported(); 352 353 bool GetAugmentedLibrariesSVR4ReadSupported(); 354 355 bool GetQXferFeaturesReadSupported(); 356 357 bool GetQXferMemoryMapReadSupported(); 358 359 LazyBool SupportsAllocDeallocMemory() // const 360 { 361 // Uncomment this to have lldb pretend the debug server doesn't respond to 362 // alloc/dealloc memory packets. 363 // m_supports_alloc_dealloc_memory = lldb_private::eLazyBoolNo; 364 return m_supports_alloc_dealloc_memory; 365 } 366 367 size_t GetCurrentThreadIDs(std::vector<lldb::tid_t> &thread_ids, 368 bool &sequence_mutex_unavailable); 369 370 lldb::user_id_t OpenFile(const FileSpec &file_spec, File::OpenOptions flags, 371 mode_t mode, Status &error); 372 373 bool CloseFile(lldb::user_id_t fd, Status &error); 374 375 lldb::user_id_t GetFileSize(const FileSpec &file_spec); 376 377 Status GetFilePermissions(const FileSpec &file_spec, 378 uint32_t &file_permissions); 379 380 Status SetFilePermissions(const FileSpec &file_spec, 381 uint32_t file_permissions); 382 383 uint64_t ReadFile(lldb::user_id_t fd, uint64_t offset, void *dst, 384 uint64_t dst_len, Status &error); 385 386 uint64_t WriteFile(lldb::user_id_t fd, uint64_t offset, const void *src, 387 uint64_t src_len, Status &error); 388 389 Status CreateSymlink(const FileSpec &src, const FileSpec &dst); 390 391 Status Unlink(const FileSpec &file_spec); 392 393 Status MakeDirectory(const FileSpec &file_spec, uint32_t mode); 394 395 bool GetFileExists(const FileSpec &file_spec); 396 397 Status RunShellCommand( 398 const char *command, // Shouldn't be nullptr 399 const FileSpec &working_dir, // Pass empty FileSpec to use the current 400 // working directory 401 int *status_ptr, // Pass nullptr if you don't want the process exit status 402 int *signo_ptr, // Pass nullptr if you don't want the signal that caused 403 // the process to exit 404 std::string 405 *command_output, // Pass nullptr if you don't want the command output 406 const Timeout<std::micro> &timeout); 407 408 bool CalculateMD5(const FileSpec &file_spec, uint64_t &high, uint64_t &low); 409 410 lldb::DataBufferSP ReadRegister( 411 lldb::tid_t tid, 412 uint32_t 413 reg_num); // Must be the eRegisterKindProcessPlugin register number 414 415 lldb::DataBufferSP ReadAllRegisters(lldb::tid_t tid); 416 417 bool 418 WriteRegister(lldb::tid_t tid, 419 uint32_t reg_num, // eRegisterKindProcessPlugin register number 420 llvm::ArrayRef<uint8_t> data); 421 422 bool WriteAllRegisters(lldb::tid_t tid, llvm::ArrayRef<uint8_t> data); 423 424 bool SaveRegisterState(lldb::tid_t tid, uint32_t &save_id); 425 426 bool RestoreRegisterState(lldb::tid_t tid, uint32_t save_id); 427 428 bool SyncThreadState(lldb::tid_t tid); 429 430 const char *GetGDBServerProgramName(); 431 432 uint32_t GetGDBServerProgramVersion(); 433 434 bool AvoidGPackets(ProcessGDBRemote *process); 435 436 StructuredData::ObjectSP GetThreadsInfo(); 437 438 bool GetThreadExtendedInfoSupported(); 439 440 bool GetLoadedDynamicLibrariesInfosSupported(); 441 442 bool GetSharedCacheInfoSupported(); 443 444 /// Use qOffsets to query the offset used when relocating the target 445 /// executable. If successful, the returned structure will contain at least 446 /// one value in the offsets field. 447 llvm::Optional<QOffsets> GetQOffsets(); 448 449 bool GetModuleInfo(const FileSpec &module_file_spec, 450 const ArchSpec &arch_spec, ModuleSpec &module_spec); 451 452 llvm::Optional<std::vector<ModuleSpec>> 453 GetModulesInfo(llvm::ArrayRef<FileSpec> module_file_specs, 454 const llvm::Triple &triple); 455 456 bool ReadExtFeature(const lldb_private::ConstString object, 457 const lldb_private::ConstString annex, std::string &out, 458 lldb_private::Status &err); 459 460 void ServeSymbolLookups(lldb_private::Process *process); 461 462 // Sends QPassSignals packet to the server with given signals to ignore. 463 Status SendSignalsToIgnore(llvm::ArrayRef<int32_t> signals); 464 465 /// Return the feature set supported by the gdb-remote server. 466 /// 467 /// This method returns the remote side's response to the qSupported 468 /// packet. The response is the complete string payload returned 469 /// to the client. 470 /// 471 /// \return 472 /// The string returned by the server to the qSupported query. 473 const std::string &GetServerSupportedFeatures() const { 474 return m_qSupported_response; 475 } 476 477 /// Return the array of async JSON packet types supported by the remote. 478 /// 479 /// This method returns the remote side's array of supported JSON 480 /// packet types as a list of type names. Each of the results are 481 /// expected to have an Enable{type_name} command to enable and configure 482 /// the related feature. Each type_name for an enabled feature will 483 /// possibly send async-style packets that contain a payload of a 484 /// binhex-encoded JSON dictionary. The dictionary will have a 485 /// string field named 'type', that contains the type_name of the 486 /// supported packet type. 487 /// 488 /// There is a Plugin category called structured-data plugins. 489 /// A plugin indicates whether it knows how to handle a type_name. 490 /// If so, it can be used to process the async JSON packet. 491 /// 492 /// \return 493 /// The string returned by the server to the qSupported query. 494 lldb_private::StructuredData::Array *GetSupportedStructuredDataPlugins(); 495 496 /// Configure a StructuredData feature on the remote end. 497 /// 498 /// \see \b Process::ConfigureStructuredData(...) for details. 499 Status 500 ConfigureRemoteStructuredData(ConstString type_name, 501 const StructuredData::ObjectSP &config_sp); 502 503 lldb::user_id_t SendStartTracePacket(const TraceOptions &options, 504 Status &error); 505 506 Status SendStopTracePacket(lldb::user_id_t uid, lldb::tid_t thread_id); 507 508 Status SendGetDataPacket(lldb::user_id_t uid, lldb::tid_t thread_id, 509 llvm::MutableArrayRef<uint8_t> &buffer, 510 size_t offset = 0); 511 512 Status SendGetMetaDataPacket(lldb::user_id_t uid, lldb::tid_t thread_id, 513 llvm::MutableArrayRef<uint8_t> &buffer, 514 size_t offset = 0); 515 516 Status SendGetTraceConfigPacket(lldb::user_id_t uid, TraceOptions &options); 517 518 protected: 519 LazyBool m_supports_not_sending_acks; 520 LazyBool m_supports_thread_suffix; 521 LazyBool m_supports_threads_in_stop_reply; 522 LazyBool m_supports_vCont_all; 523 LazyBool m_supports_vCont_any; 524 LazyBool m_supports_vCont_c; 525 LazyBool m_supports_vCont_C; 526 LazyBool m_supports_vCont_s; 527 LazyBool m_supports_vCont_S; 528 LazyBool m_qHostInfo_is_valid; 529 LazyBool m_curr_pid_is_valid; 530 LazyBool m_qProcessInfo_is_valid; 531 LazyBool m_qGDBServerVersion_is_valid; 532 LazyBool m_supports_alloc_dealloc_memory; 533 LazyBool m_supports_memory_region_info; 534 LazyBool m_supports_watchpoint_support_info; 535 LazyBool m_supports_detach_stay_stopped; 536 LazyBool m_watchpoints_trigger_after_instruction; 537 LazyBool m_attach_or_wait_reply; 538 LazyBool m_prepare_for_reg_writing_reply; 539 LazyBool m_supports_p; 540 LazyBool m_supports_x; 541 LazyBool m_avoid_g_packets; 542 LazyBool m_supports_QSaveRegisterState; 543 LazyBool m_supports_qXfer_auxv_read; 544 LazyBool m_supports_qXfer_libraries_read; 545 LazyBool m_supports_qXfer_libraries_svr4_read; 546 LazyBool m_supports_qXfer_features_read; 547 LazyBool m_supports_qXfer_memory_map_read; 548 LazyBool m_supports_augmented_libraries_svr4_read; 549 LazyBool m_supports_jThreadExtendedInfo; 550 LazyBool m_supports_jLoadedDynamicLibrariesInfos; 551 LazyBool m_supports_jGetSharedCacheInfo; 552 LazyBool m_supports_QPassSignals; 553 LazyBool m_supports_error_string_reply; 554 555 bool m_supports_qProcessInfoPID : 1, m_supports_qfProcessInfo : 1, 556 m_supports_qUserName : 1, m_supports_qGroupName : 1, 557 m_supports_qThreadStopInfo : 1, m_supports_z0 : 1, m_supports_z1 : 1, 558 m_supports_z2 : 1, m_supports_z3 : 1, m_supports_z4 : 1, 559 m_supports_QEnvironment : 1, m_supports_QEnvironmentHexEncoded : 1, 560 m_supports_qSymbol : 1, m_qSymbol_requests_done : 1, 561 m_supports_qModuleInfo : 1, m_supports_jThreadsInfo : 1, 562 m_supports_jModulesInfo : 1; 563 564 lldb::pid_t m_curr_pid; 565 lldb::tid_t m_curr_tid; // Current gdb remote protocol thread index for all 566 // other operations 567 lldb::tid_t m_curr_tid_run; // Current gdb remote protocol thread index for 568 // continue, step, etc 569 570 uint32_t m_num_supported_hardware_watchpoints; 571 572 ArchSpec m_host_arch; 573 ArchSpec m_process_arch; 574 llvm::VersionTuple m_os_version; 575 llvm::VersionTuple m_maccatalyst_version; 576 std::string m_os_build; 577 std::string m_os_kernel; 578 std::string m_hostname; 579 std::string m_gdb_server_name; // from reply to qGDBServerVersion, empty if 580 // qGDBServerVersion is not supported 581 uint32_t m_gdb_server_version; // from reply to qGDBServerVersion, zero if 582 // qGDBServerVersion is not supported 583 std::chrono::seconds m_default_packet_timeout; 584 uint64_t m_max_packet_size; // as returned by qSupported 585 std::string m_qSupported_response; // the complete response to qSupported 586 587 bool m_supported_async_json_packets_is_valid; 588 lldb_private::StructuredData::ObjectSP m_supported_async_json_packets_sp; 589 590 std::vector<MemoryRegionInfo> m_qXfer_memory_map; 591 bool m_qXfer_memory_map_loaded; 592 593 bool GetCurrentProcessInfo(bool allow_lazy_pid = true); 594 595 bool GetGDBServerVersion(); 596 597 // Given the list of compression types that the remote debug stub can support, 598 // possibly enable compression if we find an encoding we can handle. 599 void MaybeEnableCompression(std::vector<std::string> supported_compressions); 600 601 bool DecodeProcessInfoResponse(StringExtractorGDBRemote &response, 602 ProcessInstanceInfo &process_info); 603 604 void OnRunPacketSent(bool first) override; 605 606 PacketResult SendThreadSpecificPacketAndWaitForResponse( 607 lldb::tid_t tid, StreamString &&payload, 608 StringExtractorGDBRemote &response, bool send_async); 609 610 Status SendGetTraceDataPacket(StreamGDBRemote &packet, lldb::user_id_t uid, 611 lldb::tid_t thread_id, 612 llvm::MutableArrayRef<uint8_t> &buffer, 613 size_t offset); 614 615 Status LoadQXferMemoryMap(); 616 617 Status GetQXferMemoryMapRegionInfo(lldb::addr_t addr, 618 MemoryRegionInfo ®ion); 619 620 LazyBool GetThreadPacketSupported(lldb::tid_t tid, llvm::StringRef packetStr); 621 622 private: 623 DISALLOW_COPY_AND_ASSIGN(GDBRemoteCommunicationClient); 624 }; 625 626 } // namespace process_gdb_remote 627 } // namespace lldb_private 628 629 #endif // LLDB_SOURCE_PLUGINS_PROCESS_GDB_REMOTE_GDBREMOTECOMMUNICATIONCLIENT_H 630