Skip to content

Commit 15fd62b

Browse files
committed
add __lldb_ prefix
1 parent 1f3ae21 commit 15fd62b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lldb/tools/lldb-dap/Handler/ModuleSymbolsRequestHandler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
3131
if (!lldb_private::UUID::DecodeUUIDBytesFromString(args.moduleId,
3232
uuid_bytes)
3333
.empty())
34-
return llvm::make_error<DAPError>("Invalid module ID");
34+
return llvm::make_error<DAPError>("invalid module ID");
3535

3636
module_spec.SetUUIDBytes(uuid_bytes.data(), uuid_bytes.size());
3737
}
@@ -49,7 +49,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
4949
std::vector<Symbol> &symbols = response.symbols;
5050
lldb::SBModule module = dap.target.FindModule(module_spec);
5151
if (!module.IsValid())
52-
return llvm::make_error<DAPError>("Module not found");
52+
return llvm::make_error<DAPError>("module not found");
5353

5454
const size_t num_symbols = module.GetNumSymbols();
5555
const size_t start_index = args.startIndex.value_or(0);

lldb/tools/lldb-dap/Handler/RequestHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ class ModuleSymbolsRequestHandler
600600
llvm::Expected<protocol::ModuleSymbolsResponseBody>> {
601601
public:
602602
using RequestHandler::RequestHandler;
603-
static llvm::StringLiteral GetCommand() { return "moduleSymbols"; }
603+
static llvm::StringLiteral GetCommand() { return "__lldb_moduleSymbols"; }
604604
FeatureSet GetSupportedFeatures() const override {
605605
return {protocol::eAdapterFeatureSupportsModuleSymbolsRequest};
606606
}

lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class SymbolsProvider extends DisposableContext {
8080
}
8181

8282
private async getSymbolsForModule(session: vscode.DebugSession, moduleId: string): Promise<SymbolType[]> {
83-
const symbols_response: { symbols: Array<SymbolType> } = await session.customRequest("moduleSymbols", { moduleId, moduleName: '' });
83+
const symbols_response: { symbols: Array<SymbolType> } = await session.customRequest("__lldb_moduleSymbols", { moduleId, moduleName: '' });
8484
return symbols_response?.symbols || [];
8585
}
8686

0 commit comments

Comments
 (0)