@@ -702,6 +702,9 @@ cc_library(
702
702
"//lldb/source/Plugins:PluginSymbolLocatorDebugSymbols" ,
703
703
"//lldb/source/Plugins:PluginSymbolVendorMacOSX" ,
704
704
],
705
+ "@platforms//os:linux" : [
706
+ "//lldb/source/Plugins:PluginProcessLinux" ,
707
+ ],
705
708
"//conditions:default" : [],
706
709
}),
707
710
)
@@ -752,7 +755,13 @@ cc_binary(
752
755
data = [
753
756
":lldb-argdumper" ,
754
757
] + select ({
755
- "@platforms//os:macos" : [":debugserver" ],
758
+ "@platforms//os:macos" : [
759
+ ":debugserver" ,
760
+ ":lldb-server" ,
761
+ ],
762
+ "@platforms//os:linux" : [
763
+ ":lldb-server" ,
764
+ ],
756
765
"//conditions:default" : [],
757
766
}),
758
767
deps = [
@@ -799,8 +808,8 @@ cc_library(
799
808
["tools/debugserver/source/**/*.cpp" ],
800
809
exclude = ["tools/debugserver/source/debugserver.cpp" ],
801
810
),
802
- tags = ["nobuildkite" ],
803
811
local_defines = ["LLDB_USE_OS_LOG" ],
812
+ tags = ["nobuildkite" ],
804
813
deps = [
805
814
":DebugServerCommonHeaders" ,
806
815
":DebugServerCommonMacOSXHeaders" ,
@@ -852,3 +861,63 @@ cc_binary(
852
861
srcs = glob (["tools/argdumper/*.cpp" ]),
853
862
deps = ["//llvm:Support" ],
854
863
)
864
+
865
+ gentbl_cc_library (
866
+ name = "lldb_server_opts_gen" ,
867
+ strip_include_prefix = "." ,
868
+ tbl_outs = [(
869
+ ["-gen-opt-parser-defs" ],
870
+ "LLGSOptions.inc" ,
871
+ )],
872
+ tblgen = "//llvm:llvm-tblgen" ,
873
+ td_file = "tools/lldb-server/LLGSOptions.td" ,
874
+ deps = ["//llvm:OptParserTdFiles" ],
875
+ )
876
+
877
+ cc_binary (
878
+ name = "lldb-server" ,
879
+ srcs = glob ([
880
+ "tools/lldb-server/*.cpp" ,
881
+ "tools/lldb-server/*.h" ,
882
+ ]),
883
+ target_compatible_with = select ({
884
+ "@platforms//os:linux" : [],
885
+ "@platforms//os:macos" : [],
886
+ # TODO: This can theoretically support more platforms, but it hasn't been tested yet
887
+ "//conditions:default" : ["@platforms//:incompatible" ],
888
+ }),
889
+ deps = [
890
+ ":Host" ,
891
+ ":Initialization" ,
892
+ ":Utility" ,
893
+ ":Version" ,
894
+ ":lldb_server_opts_gen" ,
895
+ "//lldb:Target" ,
896
+ "//lldb:TargetHeaders" ,
897
+ "//lldb/source/Plugins:PluginCPlusPlusLanguage" ,
898
+ "//lldb/source/Plugins:PluginExpressionParserClang" ,
899
+ "//lldb/source/Plugins:PluginInstructionARM" ,
900
+ "//lldb/source/Plugins:PluginInstructionARM64" ,
901
+ "//lldb/source/Plugins:PluginInstructionLoongArch" ,
902
+ "//lldb/source/Plugins:PluginInstructionMIPS" ,
903
+ "//lldb/source/Plugins:PluginInstructionMIPS64" ,
904
+ "//lldb/source/Plugins:PluginInstructionRISCV" ,
905
+ "//lldb/source/Plugins:PluginObjCLanguage" ,
906
+ "//lldb/source/Plugins:PluginProcessGDBRemote" ,
907
+ "//lldb/source/Plugins:PluginSymbolFileDWARF" ,
908
+ "//lldb/source/Plugins:PluginSymbolFileNativePDB" ,
909
+ "//lldb/source/Plugins:PluginSymbolFilePDB" ,
910
+ "//lldb/source/Plugins:PluginTypeSystemClang" ,
911
+ "//llvm:Option" ,
912
+ "//llvm:Support" ,
913
+ ] + select ({
914
+ "@platforms//os:linux" : [
915
+ "//lldb/source/Plugins:PluginObjectFileELF" ,
916
+ "//lldb/source/Plugins:PluginProcessLinux" ,
917
+ ],
918
+ "@platforms//os:macos" : [
919
+ "//lldb/source/Plugins:PluginObjectFileMachO" ,
920
+ ],
921
+ "//conditions:default" : [],
922
+ }),
923
+ )
0 commit comments