45{
46 string SymbolServer = "";
47 string Token;
48
49 if (SplitCommand.size() == 1)
50 {
51
52
53
55 {
56 ShowMessages(
"symbol server is not configured, please use '.help .sympath'\n");
57 }
58 else
59 {
60 ShowMessages(
"current symbol server is : %s\n", SymbolServer.c_str());
61 }
62 }
63 else
64 {
65
66
67
68
69
70
71
73
74
75
76
77 Command.erase(0, SplitCommand.at(0).size());
78
79
80
81
83
84
85
86
87
88
89
90
91 char Delimiter = '*';
92 if (Command.find(Delimiter) != std::string::npos)
93 {
94
95
96
97 Token = Command.substr(0, Command.find(Delimiter));
98
99 transform(Token.begin(), Token.end(), Token.begin(), ::tolower);
100
101
102
103
104 if (!Token.compare("srv"))
105 {
106
107
108
110
111
112
113
114 ShowMessages(
"symbol server/path is configured successfully\n");
115 ShowMessages(
"use '.sym load', '.sym reload', or '.sym download' to load pdb files\n");
116 }
117 else
118 {
121 return;
122 }
123 }
124 else
125 {
128 return;
129 }
130 }
131}
void Trim(std::string &s)
trim from both ends and start of a string (in place)
Definition common.cpp:594
VOID ShowMessages(const char *Fmt,...)
Show messages.
Definition libhyperdbg.cpp:96
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