46{
47 string SymbolServer = "";
48 string Token;
49
50 if (CommandTokens.size() == 1)
51 {
52
53
54
56 {
57 ShowMessages("symbol server is not configured, please use '.help .sympath'\n");
58 }
59 else
60 {
61 ShowMessages("current symbol server is : %s\n", SymbolServer.c_str());
62 }
63 }
64 else
65 {
66
67
68
69
70
71
72
73
74
75
76
77
78
79
81
82
83
84
86
87
88
89
91
92
93
94
95 if (Command.at(0) == '\"')
96 {
97
98
99
101 }
102
103
104
105
106
107
108
109
110 CHAR Delimiter =
'*';
111 if (Command.find(Delimiter) != std::string::npos)
112 {
113
114
115
116 Token = Command.substr(0, Command.find(Delimiter));
117
118 transform(Token.begin(), Token.end(), Token.begin(), ::tolower);
119
120
121
122
123 if (!Token.compare("srv"))
124 {
125
126
127
129
130
131
132
133 ShowMessages("symbol server/path is configured successfully\n");
134 ShowMessages("use '.sym load', '.sym reload', or '.sym download' to load pdb files\n");
135 }
136 else
137 {
138 ShowMessages("symbol path is invalid\n\n");
140 return;
141 }
142 }
143 else
144 {
145 ShowMessages("symbol path is invalid\n\n");
147 return;
148 }
149 }
150}
std::string GetCaseSensitiveStringFromCommandToken(CommandToken TargetToken)
Get case sensitive string from command token.
Definition common.cpp:467
VOID Trim(std::string &s)
trim from both ends and start of a string (in place)
Definition common.cpp:715
VOID CommandSettingsSetValueFromConfigFile(std::string OptionName, std::string OptionValue)
Sets the setting values from config file.
Definition settings.cpp:115
BOOLEAN CommandSettingsGetValueFromConfigFile(std::string OptionName, std::string &OptionValue)
Gets the setting values from config file.
Definition settings.cpp:60
VOID CommandSympathHelp()
help of the .sympath command
Definition sympath.cpp:24