Code::Blocks  SVN r11506
remotedebugging.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3
3  * http://www.gnu.org/licenses/gpl-3.0.html
4  */
5 
6 #ifndef REMOTEDEBUGGING_H
7 #define REMOTEDEBUGGING_H
8 
9 #include <map>
10 #include <wx/string.h>
11 
12 class ProjectBuildTarget;
13 
14 // per-target remote debugging support
16 {
18  {
19  TCP = 0,
20  UDP,
22  };
23 
25 
26  bool IsOk() const
27  {
28  return connType == Serial
30  : (!ip.IsEmpty() && !ipPort.IsEmpty());
31  }
32 
33  void MergeWith(const RemoteDebugging& other)
34  {
35  if (other.IsOk())
36  {
37  connType = other.connType;
38  serialPort = other.serialPort;
39  serialBaud = other.serialBaud;
40  ip = other.ip;
41  ipPort = other.ipPort;
42  }
43 
44  if (!additionalCmds.IsEmpty() && !other.additionalCmds.IsEmpty())
45  additionalCmds += _T('\n');
46  if (!other.additionalCmds.IsEmpty())
48 
50  additionalCmdsBefore += _T('\n');
51  if (!other.additionalCmdsBefore.IsEmpty())
53 
54  skipLDpath = other.skipLDpath;
56 
59  if (!other.additionalShellCmdsAfter.IsEmpty())
61 
66  }
67 
77  bool skipLDpath;
79 };
80 
81 typedef std::map<ProjectBuildTarget*, RemoteDebugging> RemoteDebuggingMap;
82 
83 
84 #endif // REMOTEDEBUGGING_H
wxString additionalCmds
commands after remote connection established
wxString additionalShellCmdsAfter
shell commands after remote connection established
#define _T(string)
wxString additionalCmdsBefore
commands before establishing remote connection
bool extendedRemote
connect with extended remote or not
bool IsOk() const
bool IsEmpty() const
wxString additionalShellCmdsBefore
shell commands before establishing remote connection
Represents a Code::Blocks project build target.
std::map< ProjectBuildTarget *, RemoteDebugging > RemoteDebuggingMap
void MergeWith(const RemoteDebugging &other)
bool skipLDpath
skip adjusting LD_LIBRARY_PATH before launching debugger
ConnectionType connType