brintos

brintos / llvm-project-archived public Read only

0
0
Text · 61.1 KiB · da39e58 Raw
2353 lines · plain
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.2# See https://llvm.org/LICENSE.txt for license information.3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception4load("@bazel_skylib//rules:expand_template.bzl", "expand_template")5load("@rules_cc//cc:defs.bzl", "cc_library", "objc_library")6load("//mlir:tblgen.bzl", "gentbl_cc_library")7load(":plugin_config.bzl", "DEFAULT_PLUGINS", "DEFAULT_SCRIPT_PLUGINS", "OBJCPP_COPTS")8 9package(10    default_visibility = ["//visibility:public"],11    features = ["layering_check"],12)13 14licenses(["notice"])15 16cc_library(17    name = "PluginClangCommon",18    srcs = glob(["Language/ClangCommon/*.cpp"]),19    hdrs = glob(["Language/ClangCommon/*.h"]),20    includes = [".."],21    deps = [22        "//clang:basic",23        "//clang:lex",24        "//lldb:CoreHeaders",25        "//lldb:Host",26        "//lldb:TargetHeaders",27        "//lldb:Utility",28        "//llvm:Support",29    ],30)31 32cc_library(33    name = "PluginObjCLanguageHeaders",34    hdrs = glob(["Language/ObjC/*.h"]),35    includes = [".."],36    deps = [37        ":PluginClangCommon",38        ":PluginExpressionParserClangHeaders",39        "//lldb:CoreHeaders",40    ],41)42 43cc_library(44    name = "PluginObjCLanguage",45    srcs = glob(["Language/ObjC/*.cpp"]),46    includes = [".."],47    deps = [48        ":PluginAppleObjCRuntime",49        ":PluginExpressionParserClangHeaders",50        ":PluginObjCLanguageHeaders",51        ":PluginObjCRuntime",52        ":PluginTypeSystemClangHeaders",53        "//clang:ast",54        "//clang:basic",55        "//lldb:CoreHeaders",56        "//lldb:DataFormattersHeaders",57        "//lldb:ExpressionHeaders",58        "//lldb:Host",59        "//lldb:SymbolHeaders",60        "//lldb:TargetHeaders",61        "//lldb:Utility",62        "//llvm:Support",63    ],64)65 66cc_library(67    name = "PluginTypeSystemClangHeaders",68    hdrs = glob(["TypeSystem/Clang/*.h"]),69    includes = [".."],70    deps = [71        ":PluginExpressionParserClangHeaders",72        "//clang:frontend",73        "//lldb:CoreHeaders",74    ],75)76 77cc_library(78    name = "PluginCPPRuntime",79    srcs = glob(["LanguageRuntime/CPlusPlus/*.cpp"]),80    hdrs = glob(["LanguageRuntime/CPlusPlus/*.h"]),81    includes = [".."],82    deps = [83        "//clang:codegen",84        "//lldb:CoreHeaders",85        "//lldb:Headers",86        "//lldb:SymbolHeaders",87        "//lldb:TargetHeaders",88        "//lldb:Utility",89        "//llvm:Support",90    ],91)92 93cc_library(94    name = "PluginObjCRuntime",95    srcs = glob(["LanguageRuntime/ObjC/*.cpp"]),96    hdrs = glob(["LanguageRuntime/ObjC/*.h"]),97    includes = [".."],98    deps = [99        ":PluginTypeSystemClangHeaders",100        "//clang:ast",101        "//lldb:BreakpointHeaders",102        "//lldb:CoreHeaders",103        "//lldb:Headers",104        "//lldb:SymbolHeaders",105        "//lldb:TargetHeaders",106        "//lldb:Utility",107        "//llvm:Support",108    ],109)110 111cc_library(112    name = "PluginAppleObjCRuntime",113    srcs = glob(["LanguageRuntime/ObjC/AppleObjCRuntime/*.cpp"]),114    hdrs = glob(["LanguageRuntime/ObjC/AppleObjCRuntime/*.h"]),115    includes = [".."],116    deps = [117        ":PluginCPPRuntime",118        ":PluginExpressionParserClangHeaders",119        ":PluginObjCLanguageHeaders",120        ":PluginObjCRuntime",121        ":PluginProcessUtility",122        ":PluginTypeSystemClangHeaders",123        "//clang:ast",124        "//clang:basic",125        "//lldb:BreakpointHeaders",126        "//lldb:CoreHeaders",127        "//lldb:DataFormattersHeaders",128        "//lldb:ExpressionHeaders",129        "//lldb:Headers",130        "//lldb:Host",131        "//lldb:InterpreterHeaders",132        "//lldb:SymbolHeaders",133        "//lldb:TargetHeaders",134        "//lldb:Utility",135        "//llvm:Support",136    ],137)138 139cc_library(140    name = "PluginTypeSystemClang",141    srcs = glob(["TypeSystem/Clang/*.cpp"]),142    deps = [143        ":PluginExpressionParserClangHeaders",144        ":PluginObjCRuntime",145        ":PluginSymbolFileDWARF",146        ":PluginSymbolFileDWARFHeaders",147        ":PluginSymbolFileNativePDBHeaders",148        ":PluginSymbolFilePDBHeaders",149        ":PluginTypeSystemClangHeaders",150        "//clang:ast",151        "//clang:basic",152        "//clang:frontend",153        "//clang:lex",154        "//clang:sema",155        "//lldb:CoreHeaders",156        "//lldb:ExpressionHeaders",157        "//lldb:Host",158        "//lldb:SymbolHeaders",159        "//lldb:TargetHeaders",160        "//lldb:Utility",161        "//llvm:Support",162    ],163)164 165cc_library(166    name = "PluginExpressionParserClangHeaders",167    hdrs = glob(["ExpressionParser/Clang/*.h"]),168    includes = [".."],169    deps = [170        "//lldb:CoreHeaders",171        "//lldb:DataFormattersHeaders",172    ],173)174 175cc_library(176    name = "PluginExpressionParserClang",177    srcs = glob(["ExpressionParser/Clang/*.cpp"]),178    includes = [".."],179    deps = [180        ":PluginCPPRuntime",181        ":PluginCPlusPlusLanguageHeaders",182        ":PluginExpressionParserClangHeaders",183        ":PluginObjCRuntime",184        ":PluginPlatformMacOSX",185        ":PluginTypeSystemClang",186        ":PluginTypeSystemClangHeaders",187        "//clang:ast",188        "//clang:basic",189        "//clang:codegen",190        "//clang:config",191        "//clang:driver",192        "//clang:edit",193        "//clang:frontend",194        "//clang:frontend_rewrite",195        "//clang:lex",196        "//clang:options",197        "//clang:parse",198        "//clang:rewrite",199        "//clang:sema",200        "//clang:serialization",201        "//lldb:Core",202        "//lldb:DataFormatters",203        "//lldb:ExpressionHeaders",204        "//lldb:Headers",205        "//lldb:Host",206        "//lldb:InterpreterHeaders",207        "//lldb:SymbolHeaders",208        "//lldb:TargetHeaders",209        "//lldb:Utility",210        "//llvm:BinaryFormat",211        "//llvm:Core",212        "//llvm:ExecutionEngine",213        "//llvm:IPO",214        "//llvm:Support",215        "//llvm:TargetParser",216    ],217)218 219gentbl_cc_library(220    name = "PlatformMacOSXProperties",221    strip_include_prefix = "Platform/MacOSX",222    tbl_outs = {223        "Platform/MacOSX/PlatformMacOSXProperties.inc": ["-gen-lldb-property-defs"],224        "Platform/MacOSX/PlatformMacOSXPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],225    },226    tblgen = "//lldb:lldb-tblgen",227    td_file = "Platform/MacOSX/PlatformMacOSXProperties.td",228    deps = ["//lldb:CoreTdFiles"],229)230 231cc_library(232    name = "PluginPlatformMacOSXObjCXXHeaders",233    hdrs = glob(["Platform/MacOSX/objcxx/*.h"]),234    includes = [".."],235    tags = ["nobuildkite"],236    target_compatible_with = select({237        "@platforms//os:macos": [],238        "//conditions:default": ["@platforms//:incompatible"],239    }),240    deps = ["//lldb:Host"],241)242 243objc_library(244    name = "PluginPlatformMacOSXObjCXX",245    copts = OBJCPP_COPTS,246    non_arc_srcs = glob(["Platform/MacOSX/objcxx/*.mm"]),247    tags = ["nobuildkite"],248    target_compatible_with = select({249        "@platforms//os:macos": [],250        "//conditions:default": ["@platforms//:incompatible"],251    }),252    deps = [253        ":PluginPlatformMacOSXObjCXXHeaders",254        "//lldb:Host",255        "//lldb:HostMacOSXPrivateHeaders",256        "//llvm:Support",257    ],258)259 260cc_library(261    name = "PluginPlatformMacOSX",262    srcs = glob(263               ["Platform/MacOSX/*.cpp"],264               exclude = ["Platform/MacOSX/PlatformAppleSimulator.cpp"],265           ) +266           select({267               "@platforms//os:macos": ["Platform/MacOSX/PlatformAppleSimulator.cpp"],268               "//conditions:default": [],269           }),270    hdrs = glob(["Platform/MacOSX/*.h"]),271    includes = [".."],272    tags = ["nobuildkite"],273    deps = [274        ":PlatformMacOSXProperties",275        ":PluginDynamicLoaderDarwinKernelHeaders",276        ":PluginObjectContainerMachOFileset",277        ":PluginPlatformPOSIX",278        "//clang:driver_options_inc_gen",279        "//lldb:BreakpointHeaders",280        "//lldb:Core",281        "//lldb:Headers",282        "//lldb:Host",283        "//lldb:InterpreterHeaders",284        "//lldb:SymbolHeaders",285        "//lldb:TargetHeaders",286        "//lldb:Utility",287        "//llvm:Support",288        "//llvm:TargetParser",289    ] + select({290        "@platforms//os:macos": [291            ":PluginPlatformMacOSXObjCXX",292            ":PluginPlatformMacOSXObjCXXHeaders",293            "//lldb:HostMacOSXPrivateHeaders",294        ],295        "//conditions:default": [],296    }),297)298 299gentbl_cc_library(300    name = "SymbolFileDWARFProperties",301    strip_include_prefix = "SymbolFile/DWARF",302    tbl_outs = {303        "SymbolFile/DWARF/SymbolFileDWARFProperties.inc": ["-gen-lldb-property-defs"],304        "SymbolFile/DWARF/SymbolFileDWARFPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],305    },306    tblgen = "//lldb:lldb-tblgen",307    td_file = "SymbolFile/DWARF/SymbolFileDWARFProperties.td",308    deps = ["//lldb:CoreTdFiles"],309)310 311cc_library(312    name = "PluginSymbolFileDWARFHeaders",313    hdrs = glob(["SymbolFile/DWARF/*.h"]),314    includes = [".."],315    deps = [316        ":PluginTypeSystemClangHeaders",317        "//lldb:Core",318    ],319)320 321cc_library(322    name = "PluginSymbolFileDWARF",323    srcs = glob(["SymbolFile/DWARF/*.cpp"]),324    deps = [325        ":PluginCPlusPlusLanguageHeaders",326        ":PluginExpressionParserClangHeaders",327        ":PluginObjCLanguageHeaders",328        ":PluginSymbolFileDWARFHeaders",329        ":PluginTypeSystemClangHeaders",330        ":SymbolFileDWARFProperties",331        "//clang:ast",332        "//clang:basic",333        "//lldb:Core",334        "//lldb:ExpressionHeaders",335        "//lldb:Headers",336        "//lldb:Host",337        "//lldb:InterpreterHeaders",338        "//lldb:SymbolHeaders",339        "//lldb:TargetHeaders",340        "//lldb:Utility",341        "//lldb:UtilityPrivateHeaders",342        "//llvm:BinaryFormat",343        "//llvm:DebugInfoDWARF",344        "//llvm:Demangle",345        "//llvm:Object",346        "//llvm:Support",347    ],348)349 350cc_library(351    name = "PluginProcessUtility",352    srcs = glob(["Process/Utility/*.cpp"]),353    hdrs = glob(["Process/Utility/*.h"]),354    includes = [".."],355    deps = [356        "//lldb:BreakpointHeaders",357        "//lldb:Core",358        "//lldb:ExpressionHeaders",359        "//lldb:Headers",360        "//lldb:Host",361        "//lldb:SymbolHeaders",362        "//lldb:TargetHeaders",363        "//lldb:Utility",364        "//lldb:UtilityPrivateHeaders",365        "//llvm:Support",366        "//llvm:TargetParser",367    ],368)369 370cc_library(371    name = "PluginObjectFilePDB",372    srcs = glob(["ObjectFile/PDB/*.cpp"]),373    hdrs = glob(["ObjectFile/PDB/*.h"]),374    includes = [".."],375    deps = [376        "//lldb:Core",377        "//lldb:SymbolHeaders",378        "//lldb:Utility",379        "//llvm:BinaryFormat",380        "//llvm:DebugInfoPDB",381        "//llvm:Support",382    ],383)384 385cc_library(386    name = "PluginSymbolFileNativePDBHeaders",387    hdrs = glob(["SymbolFile/NativePDB/*.h"]),388    includes = [".."],389    deps = ["//lldb:Core"],390)391 392cc_library(393    name = "PluginSymbolFileNativePDB",394    srcs = glob(["SymbolFile/NativePDB/*.cpp"]),395    deps = [396        ":PluginCPlusPlusLanguageHeaders",397        ":PluginExpressionParserClangHeaders",398        ":PluginObjectFilePDB",399        ":PluginProcessUtility",400        ":PluginSymbolFileNativePDBHeaders",401        ":PluginSymbolFilePDBHeaders",402        ":PluginTypeSystemClangHeaders",403        "//lldb:Core",404        "//lldb:ExpressionHeaders",405        "//lldb:Headers",406        "//lldb:SymbolHeaders",407        "//lldb:Utility",408        "//llvm:BinaryFormat",409        "//llvm:DebugInfoCodeView",410        "//llvm:DebugInfoMSF",411        "//llvm:DebugInfoPDB",412        "//llvm:Demangle",413        "//llvm:Object",414        "//llvm:Support",415    ],416)417 418cc_library(419    name = "PluginSymbolFilePDBHeaders",420    hdrs = glob(["SymbolFile/PDB/*.h"]),421    includes = [".."],422    deps = ["//lldb:Core"],423)424 425gentbl_cc_library(426    name = "SymbolFilePDBProperties",427    strip_include_prefix = "SymbolFile/PDB",428    tbl_outs = {429        "SymbolFile/PDB/SymbolFilePDBProperties.inc": ["-gen-lldb-property-defs"],430        "SymbolFile/PDB/SymbolFilePDBPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],431    },432    tblgen = "//lldb:lldb-tblgen",433    td_file = "SymbolFile/PDB/SymbolFilePDBProperties.td",434    deps = ["//lldb:CoreTdFiles"],435)436 437cc_library(438    name = "PluginSymbolFilePDB",439    srcs = glob(["SymbolFile/PDB/*.cpp"]),440    deps = [441        ":PluginCPlusPlusLanguageHeaders",442        ":PluginExpressionParserClangHeaders",443        ":PluginSymbolFileNativePDB",444        ":PluginSymbolFileNativePDBHeaders",445        ":PluginSymbolFilePDBHeaders",446        ":PluginTypeSystemClangHeaders",447        ":SymbolFilePDBProperties",448        "//clang:ast",449        "//clang:lex",450        "//lldb:Core",451        "//lldb:ExpressionHeaders",452        "//lldb:SymbolHeaders",453        "//lldb:Utility",454        "//llvm:DebugInfoCodeView",455        "//llvm:DebugInfoPDB",456        "//llvm:config",457    ],458)459 460gentbl_cc_library(461    name = "ProcessGDBRemoteProperties",462    strip_include_prefix = "Process/gdb-remote",463    tbl_outs = {464        "Process/gdb-remote/ProcessGDBRemoteProperties.inc": ["-gen-lldb-property-defs"],465        "Process/gdb-remote/ProcessGDBRemotePropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],466    },467    tblgen = "//lldb:lldb-tblgen",468    td_file = "Process/gdb-remote/ProcessGDBRemoteProperties.td",469    deps = ["//lldb:CoreTdFiles"],470)471 472cc_library(473    name = "PluginProcessGDBRemote",474    srcs = glob(["Process/gdb-remote/*.cpp"]),475    hdrs = glob(["Process/gdb-remote/*.h"]) + [476        "Process/gdb-remote/GDBRemoteErrno.def",477    ],478    includes = [".."],479    deps = [480        ":PluginProcessUtility",481        ":ProcessGDBRemoteProperties",482        "//lldb:BreakpointHeaders",483        "//lldb:CoreHeaders",484        "//lldb:DataFormattersHeaders",485        "//lldb:Headers",486        "//lldb:Host",487        "//lldb:InterpreterHeaders",488        "//lldb:SymbolHeaders",489        "//lldb:Target",490        "//lldb:TargetHeaders",491        "//lldb:Utility",492        "//lldb:UtilityPrivateHeaders",493        "//llvm:Support",494        "//llvm:TargetParser",495        "//llvm:config",496        "//third-party:zlib",497    ],498)499 500cc_library(501    name = "PluginProcessWasm",502    srcs = glob(["Process/wasm/*.cpp"]),503    hdrs = glob(["Process/wasm/*.h"]),504    includes = [".."],505    deps = [506        ":PluginProcessGDBRemote",507        "//lldb:CoreHeaders",508        "//lldb:Headers",509        "//lldb:TargetHeaders",510        "//lldb:Utility",511        "//lldb:UtilityPrivateHeaders",512        "//llvm:Support",513    ],514)515 516cc_library(517    name = "PluginObjectContainerMachOArchive",518    srcs = glob(["ObjectContainer/Universal-Mach-O/*.cpp"]),519    hdrs = glob(["ObjectContainer/Universal-Mach-O/*.h"]),520    includes = [".."],521    deps = [522        "//lldb:Core",523        "//lldb:Host",524        "//lldb:Symbol",525        "//lldb:SymbolHeaders",526        "//lldb:Target",527        "//lldb:TargetHeaders",528        "//lldb:Utility",529    ],530)531 532cc_library(533    name = "PluginObjectContainerBSDArchive",534    srcs = glob(["ObjectContainer/BSD-Archive/*.cpp"]),535    hdrs = glob(["ObjectContainer/BSD-Archive/*.h"]),536    includes = [".."],537    deps = [538        "//lldb:Core",539        "//lldb:Host",540        "//lldb:Symbol",541        "//lldb:SymbolHeaders",542        "//lldb:Utility",543        "//llvm:Object",544        "//llvm:Support",545    ],546)547 548cc_library(549    name = "PluginObjectContainerMachOFileset",550    srcs = glob(["ObjectContainer/Mach-O-Fileset/*.cpp"]),551    hdrs = glob(["ObjectContainer/Mach-O-Fileset/*.h"]),552    includes = [".."],553    deps = [554        "//lldb:Core",555        "//lldb:Host",556        "//lldb:Symbol",557        "//lldb:SymbolHeaders",558        "//lldb:Target",559        "//lldb:TargetHeaders",560        "//lldb:Utility",561    ],562)563 564gentbl_cc_library(565    name = "StructuredDataDarwinLogProperties",566    strip_include_prefix = "StructuredData/DarwinLog",567    tbl_outs = {568        "StructuredData/DarwinLog/StructuredDataDarwinLogProperties.inc": ["-gen-lldb-property-defs"],569        "StructuredData/DarwinLog/StructuredDataDarwinLogPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],570    },571    tblgen = "//lldb:lldb-tblgen",572    td_file = "StructuredData/DarwinLog/StructuredDataDarwinLogProperties.td",573    deps = ["//lldb:CoreTdFiles"],574)575 576cc_library(577    name = "PluginStructuredDataDarwinLog",578    srcs = glob(["StructuredData/DarwinLog/*.cpp"]),579    hdrs = glob(["StructuredData/DarwinLog/*.h"]),580    includes = [".."],581    deps = [582        ":StructuredDataDarwinLogProperties",583        "//lldb:Breakpoint",584        "//lldb:Core",585        "//lldb:Host",586        "//lldb:InterpreterHeaders",587        "//lldb:Target",588        "//lldb:TargetHeaders",589        "//lldb:Utility",590        "//llvm:Support",591    ],592)593 594cc_library(595    name = "PluginTraceCommon",596    srcs = glob(["Trace/common/*.cpp"]),597    hdrs = glob(["Trace/common/*.h"]),598    includes = [".."],599    deps = [600        ":PluginProcessUtility",601        "//lldb:Core",602        "//lldb:Target",603        "//lldb:TargetHeaders",604    ],605)606 607cc_library(608    name = "PluginPlatformPOSIX",609    srcs = glob(["Platform/POSIX/*.cpp"]),610    hdrs = glob(["Platform/POSIX/*.h"]),611    includes = [".."],612    deps = [613        ":PluginPlatformGDB",614        ":PluginTypeSystemClang",615        ":PluginTypeSystemClangHeaders",616        "//lldb:Core",617        "//lldb:Expression",618        "//lldb:Host",619        "//lldb:InterpreterHeaders",620        "//lldb:Target",621        "//lldb:TargetHeaders",622        "//lldb:Utility",623        "//llvm:Support",624    ],625)626 627gentbl_cc_library(628    name = "PlatformQemuUserProperties",629    strip_include_prefix = "Platform/QemuUser",630    tbl_outs = {631        "Platform/QemuUser/PlatformQemuUserProperties.inc": ["-gen-lldb-property-defs"],632        "Platform/QemuUser/PlatformQemuUserPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],633    },634    tblgen = "//lldb:lldb-tblgen",635    td_file = "Platform/QemuUser/PlatformQemuUserProperties.td",636    deps = ["//lldb:CoreTdFiles"],637)638 639cc_library(640    name = "PluginPlatformQemuUser",641    srcs = glob(["Platform/QemuUser/*.cpp"]),642    hdrs = glob(["Platform/QemuUser/*.h"]),643    includes = [".."],644    deps = [645        ":PlatformQemuUserProperties",646        ":PluginProcessGDBRemote",647        "//lldb:CoreHeaders",648        "//lldb:Host",649        "//lldb:InterpreterHeaders",650        "//lldb:Target",651        "//lldb:TargetHeaders",652        "//lldb:Utility",653    ],654)655 656cc_library(657    name = "PluginPlatformGDB",658    srcs = glob(["Platform/gdb-server/*.cpp"]),659    hdrs = glob(["Platform/gdb-server/*.h"]),660    includes = [".."],661    deps = [662        ":PluginProcessGDBRemote",663        ":PluginProcessUtility",664        "//lldb:Breakpoint",665        "//lldb:Core",666        "//lldb:Host",667        "//lldb:Target",668        "//lldb:TargetHeaders",669        "//lldb:Utility",670        "//llvm:Support",671    ],672)673 674cc_library(675    name = "PluginPlatformLinux",676    srcs = glob(["Platform/Linux/*.cpp"]),677    hdrs = glob(["Platform/Linux/*.h"]),678    includes = [".."],679    deps = [680        ":PluginPlatformPOSIX",681        ":PluginProcessUtility",682        ":PluginTypeSystemClangHeaders",683        "//lldb:Breakpoint",684        "//lldb:Core",685        "//lldb:Host",686        "//lldb:InterpreterHeaders",687        "//lldb:SymbolHeaders",688        "//lldb:Target",689        "//lldb:TargetHeaders",690        "//lldb:Utility",691        "//lldb:UtilityPrivateHeaders",692    ],693)694 695gentbl_cc_library(696    name = "PlatformAndroidProperties",697    strip_include_prefix = "Platform/Android",698    tbl_outs = {699        "Platform/Android/PlatformAndroidProperties.inc": ["-gen-lldb-property-defs"],700        "Platform/Android/PlatformAndroidPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],701    },702    tblgen = "//lldb:lldb-tblgen",703    td_file = "Platform/Android/PlatformAndroidProperties.td",704    deps = ["//lldb:CoreTdFiles"],705)706 707cc_library(708    name = "PluginPlatformAndroid",709    srcs = glob(["Platform/Android/*.cpp"]),710    hdrs = glob(["Platform/Android/*.h"]),711    includes = [".."],712    deps = [713        ":PlatformAndroidProperties",714        ":PluginPlatformGDB",715        ":PluginPlatformLinux",716        ":PluginPlatformPOSIX",717        "//lldb:Core",718        "//lldb:Host",719        "//lldb:TargetHeaders",720        "//lldb:Utility",721        "//llvm:Support",722    ],723)724 725cc_library(726    name = "PluginPlatformWindows",727    srcs = glob(["Platform/Windows/*.cpp"]),728    hdrs = glob(["Platform/Windows/*.h"]),729    includes = [".."],730    deps = [731        ":PluginPlatformGDB",732        ":PluginTypeSystemClangHeaders",733        "//lldb:Breakpoint",734        "//lldb:Core",735        "//lldb:ExpressionHeaders",736        "//lldb:Host",737        "//lldb:Target",738        "//lldb:TargetHeaders",739        "//lldb:Utility",740        "//llvm:Support",741    ],742)743 744cc_library(745    name = "PluginMemoryHistoryASan",746    srcs = glob(["MemoryHistory/asan/*.cpp"]),747    hdrs = glob(["MemoryHistory/asan/*.h"]),748    includes = [".."],749    deps = [750        ":PluginInstrumentationRuntimeUtility",751        ":PluginProcessUtility",752        "//lldb:Core",753        "//lldb:Expression",754        "//lldb:Headers",755        "//lldb:Symbol",756        "//lldb:SymbolHeaders",757        "//lldb:Target",758        "//lldb:TargetHeaders",759    ],760)761 762cc_library(763    name = "PluginClangREPL",764    srcs = glob(["REPL/Clang/*.cpp"]),765    hdrs = glob(["REPL/Clang/*.h"]),766    includes = [".."],767    deps = [768        ":PluginCPPRuntime",769        ":PluginClangCommon",770        ":PluginTypeSystemClang",771        "//lldb:Core",772        "//lldb:DataFormatters",773        "//lldb:ExpressionHeaders",774        "//lldb:Host",775        "//lldb:Symbol",776        "//lldb:Target",777        "//lldb:Utility",778    ],779)780 781cc_library(782    name = "PluginSymbolVendorWasm",783    srcs = glob(["SymbolVendor/wasm/*.cpp"]),784    hdrs = glob(["SymbolVendor/wasm/*.h"]),785    includes = [".."],786    deps = [787        ":PluginObjectFileWasm",788        "//lldb:Core",789        "//lldb:Headers",790        "//lldb:Host",791        "//lldb:Symbol",792        "//lldb:SymbolHeaders",793        "//lldb:TargetHeaders",794        "//lldb:Utility",795    ],796)797 798cc_library(799    name = "PluginSymbolVendorMacOSX",800    srcs = glob(["SymbolVendor/MacOSX/*.cpp"]),801    hdrs = glob(["SymbolVendor/MacOSX/*.h"]),802    includes = [".."],803    deps = [804        ":PluginObjectFileMachO",805        "//lldb:Core",806        "//lldb:Headers",807        "//lldb:Host",808        "//lldb:Symbol",809        "//lldb:SymbolHeaders",810        "//lldb:TargetHeaders",811        "//lldb:Utility",812    ],813)814 815cc_library(816    name = "PluginSymbolVendorPECOFF",817    srcs = glob(["SymbolVendor/PECOFF/*.cpp"]),818    hdrs = glob(["SymbolVendor/PECOFF/*.h"]),819    includes = [".."],820    deps = [821        ":PluginObjectFilePECOFF",822        "//lldb:Core",823        "//lldb:Headers",824        "//lldb:Host",825        "//lldb:Symbol",826        "//lldb:SymbolHeaders",827        "//lldb:TargetHeaders",828        "//lldb:Utility",829    ],830)831 832cc_library(833    name = "PluginSymbolVendorELF",834    srcs = glob(["SymbolVendor/ELF/*.cpp"]),835    hdrs = glob(["SymbolVendor/ELF/*.h"]),836    includes = [".."],837    deps = [838        ":PluginObjectFileELF",839        "//lldb:Core",840        "//lldb:Headers",841        "//lldb:Host",842        "//lldb:Symbol",843        "//lldb:SymbolHeaders",844        "//lldb:TargetHeaders",845        "//lldb:Utility",846    ],847)848 849cc_library(850    name = "PluginObjCPlusPlusLanguage",851    srcs = glob(["Language/ObjCPlusPlus/*.cpp"]),852    hdrs = glob(["Language/ObjCPlusPlus/*.h"]),853    includes = [".."],854    deps = [855        ":PluginClangCommon",856        "//lldb:Core",857        "//lldb:Headers",858        "//lldb:Target",859        "//lldb:TargetHeaders",860        "//lldb:Utility",861    ],862)863 864gentbl_cc_library(865    name = "LanguageCPlusPlusProperties",866    strip_include_prefix = "Language/CPlusPlus",867    tbl_outs = {868        "Language/CPlusPlus/LanguageCPlusPlusProperties.inc": ["-gen-lldb-property-defs"],869        "Language/CPlusPlus/LanguageCPlusPlusPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],870    },871    tblgen = "//lldb:lldb-tblgen",872    td_file = "Language/CPlusPlus/LanguageCPlusPlusProperties.td",873    deps = ["//lldb:CoreTdFiles"],874)875 876cc_library(877    name = "PluginCPlusPlusLanguageHeaders",878    hdrs = glob(["Language/CPlusPlus/*.h"]),879    includes = [".."],880    deps = [881        ":PluginClangCommon",882        ":PluginExpressionParserClangHeaders",883        "//lldb:CoreHeaders",884    ],885)886 887cc_library(888    name = "PluginCPlusPlusLanguage",889    srcs = glob(["Language/CPlusPlus/*.cpp"]),890    includes = [".."],891    deps = [892        ":LanguageCPlusPlusProperties",893        ":PluginCPPRuntime",894        ":PluginCPlusPlusLanguageHeaders",895        ":PluginClangCommon",896        ":PluginExpressionParserClangHeaders",897        ":PluginTypeSystemClang",898        ":PluginTypeSystemClangHeaders",899        "//clang:basic",900        "//lldb:Core",901        "//lldb:DataFormatters",902        "//lldb:Headers",903        "//lldb:Host",904        "//lldb:InterpreterHeaders",905        "//lldb:Symbol",906        "//lldb:SymbolHeaders",907        "//lldb:Target",908        "//lldb:TargetHeaders",909        "//lldb:Utility",910        "//llvm:Demangle",911        "//llvm:Support",912    ],913)914 915gentbl_cc_library(916    name = "TraceExporterCTFOptions",917    strip_include_prefix = "TraceExporter/ctf",918    tbl_outs = {"TraceExporter/ctf/TraceExporterCTFCommandOptions.inc": ["-gen-lldb-option-defs"]},919    tblgen = "//lldb:lldb-tblgen",920    td_file = "TraceExporter/ctf/TraceExporterCTFOptions.td",921    deps = [922        "//lldb:CommandsTdFiles",923        "//lldb:CoreTdFiles",924    ],925)926 927cc_library(928    name = "PluginTraceExporterCTF",929    srcs = glob(["TraceExporter/ctf/*.cpp"]),930    hdrs = glob(["TraceExporter/ctf/*.h"]),931    includes = [".."],932    deps = [933        ":PluginTraceExporterCommon",934        ":TraceExporterCTFOptions",935        "//lldb:Core",936        "//lldb:Host",937        "//lldb:InterpreterHeaders",938        "//lldb:Symbol",939        "//lldb:Target",940        "//lldb:TargetHeaders",941    ],942)943 944cc_library(945    name = "PluginTraceExporterCommon",946    srcs = glob(["TraceExporter/common/*.cpp"]),947    hdrs = glob(["TraceExporter/common/*.h"]),948    includes = [".."],949    deps = [950        "//lldb:Core",951        "//lldb:SymbolHeaders",952        "//lldb:Target",953        "//lldb:TargetHeaders",954        "//llvm:Support",955    ],956)957 958cc_library(959    name = "PluginABIPowerPC",960    srcs = glob(["ABI/PowerPC/*.cpp"]),961    hdrs = glob(["ABI/PowerPC/*.h"]),962    includes = [".."],963    deps = [964        ":PluginProcessUtility",965        ":PluginTypeSystemClang",966        ":PluginTypeSystemClangHeaders",967        "//clang:ast",968        "//lldb:Core",969        "//lldb:Headers",970        "//lldb:Symbol",971        "//lldb:SymbolHeaders",972        "//lldb:Target",973        "//lldb:TargetHeaders",974        "//lldb:Utility",975        "//lldb:UtilityPrivateHeaders",976        "//llvm:Support",977        "//llvm:TargetParser",978    ],979)980 981cc_library(982    name = "PluginABIHexagon",983    srcs = glob(["ABI/Hexagon/*.cpp"]),984    hdrs = glob(["ABI/Hexagon/*.h"]),985    includes = [".."],986    deps = [987        "//lldb:Core",988        "//lldb:Headers",989        "//lldb:Symbol",990        "//lldb:SymbolHeaders",991        "//lldb:Target",992        "//lldb:TargetHeaders",993        "//lldb:Utility",994        "//llvm:Core",995        "//llvm:TargetParser",996    ],997)998 999cc_library(1000    name = "PluginABIMips",1001    srcs = glob(["ABI/Mips/*.cpp"]),1002    hdrs = glob(["ABI/Mips/*.h"]),1003    includes = [".."],1004    deps = [1005        "//lldb:Core",1006        "//lldb:Headers",1007        "//lldb:Symbol",1008        "//lldb:SymbolHeaders",1009        "//lldb:Target",1010        "//lldb:TargetHeaders",1011        "//lldb:Utility",1012        "//llvm:Support",1013        "//llvm:TargetParser",1014    ],1015)1016 1017cc_library(1018    name = "PluginABIMSP430",1019    srcs = glob(["ABI/MSP430/*.cpp"]),1020    hdrs = glob(["ABI/MSP430/*.h"]),1021    includes = [".."],1022    deps = [1023        "//lldb:Core",1024        "//lldb:Headers",1025        "//lldb:Symbol",1026        "//lldb:SymbolHeaders",1027        "//lldb:Target",1028        "//lldb:TargetHeaders",1029        "//lldb:Utility",1030        "//llvm:Core",1031        "//llvm:TargetParser",1032    ],1033)1034 1035cc_library(1036    name = "PluginABIX86",1037    srcs = glob(["ABI/X86/*.cpp"]),1038    hdrs = glob(["ABI/X86/*.h"]),1039    includes = [".."],1040    deps = [1041        "//lldb:Core",1042        "//lldb:Headers",1043        "//lldb:Symbol",1044        "//lldb:SymbolHeaders",1045        "//lldb:Target",1046        "//lldb:TargetHeaders",1047        "//lldb:Utility",1048        "//llvm:Support",1049        "//llvm:TargetParser",1050    ],1051)1052 1053cc_library(1054    name = "PluginABIARM",1055    srcs = glob(["ABI/ARM/*.cpp"]),1056    hdrs = glob(["ABI/ARM/*.h"]),1057    includes = [".."],1058    deps = [1059        ":PluginProcessUtility",1060        "//lldb:Core",1061        "//lldb:Headers",1062        "//lldb:Symbol",1063        "//lldb:SymbolHeaders",1064        "//lldb:Target",1065        "//lldb:TargetHeaders",1066        "//lldb:Utility",1067        "//lldb:UtilityPrivateHeaders",1068        "//llvm:Support",1069        "//llvm:TargetParser",1070    ],1071)1072 1073cc_library(1074    name = "PluginABIARC",1075    srcs = glob(["ABI/ARC/*.cpp"]),1076    hdrs = glob(["ABI/ARC/*.h"]),1077    includes = [".."],1078    deps = [1079        ":PluginProcessUtility",1080        "//lldb:Core",1081        "//lldb:Headers",1082        "//lldb:Symbol",1083        "//lldb:SymbolHeaders",1084        "//lldb:Target",1085        "//lldb:TargetHeaders",1086        "//lldb:Utility",1087        "//llvm:Core",1088        "//llvm:Support",1089        "//llvm:TargetParser",1090    ],1091)1092 1093cc_library(1094    name = "PluginABIRISCV",1095    srcs = glob(["ABI/RISCV/*.cpp"]),1096    hdrs = glob(["ABI/RISCV/*.h"]),1097    includes = [".."],1098    deps = [1099        ":PluginProcessUtility",1100        "//lldb:Core",1101        "//lldb:Headers",1102        "//lldb:Symbol",1103        "//lldb:Target",1104        "//lldb:TargetHeaders",1105        "//lldb:Utility",1106        "//lldb:UtilityPrivateHeaders",1107        "//llvm:Core",1108        "//llvm:Support",1109        "//llvm:TargetParser",1110    ],1111)1112 1113cc_library(1114    name = "PluginABISystemZ",1115    srcs = glob(["ABI/SystemZ/*.cpp"]),1116    hdrs = glob(["ABI/SystemZ/*.h"]),1117    includes = [".."],1118    deps = [1119        "//lldb:Core",1120        "//lldb:Headers",1121        "//lldb:Symbol",1122        "//lldb:SymbolHeaders",1123        "//lldb:Target",1124        "//lldb:TargetHeaders",1125        "//lldb:Utility",1126        "//llvm:Support",1127        "//llvm:TargetParser",1128    ],1129)1130 1131cc_library(1132    name = "PluginABIAArch64",1133    srcs = glob(["ABI/AArch64/*.cpp"]),1134    hdrs = glob(["ABI/AArch64/*.h"]),1135    includes = [".."],1136    deps = [1137        "//lldb:Core",1138        "//lldb:Headers",1139        "//lldb:Symbol",1140        "//lldb:SymbolHeaders",1141        "//lldb:Target",1142        "//lldb:TargetHeaders",1143        "//lldb:Utility",1144        "//lldb:UtilityPrivateHeaders",1145        "//llvm:Support",1146        "//llvm:TargetParser",1147    ],1148)1149 1150cc_library(1151    name = "PluginDynamicLoaderPosixDYLDHeaders",1152    hdrs = glob(["DynamicLoader/POSIX-DYLD/*.h"]),1153    includes = [".."],1154)1155 1156cc_library(1157    name = "PluginDynamicLoaderPosixDYLD",1158    srcs = glob(["DynamicLoader/POSIX-DYLD/*.cpp"]),1159    includes = [".."],1160    deps = [1161        ":PluginDynamicLoaderPosixDYLDHeaders",1162        ":PluginProcessElfCore",1163        ":PluginProcessUtility",1164        "//lldb:Breakpoint",1165        "//lldb:Core",1166        "//lldb:Host",1167        "//lldb:Symbol",1168        "//lldb:SymbolHeaders",1169        "//lldb:Target",1170        "//lldb:TargetHeaders",1171        "//lldb:Utility",1172        "//llvm:Support",1173    ],1174)1175 1176cc_library(1177    name = "PluginDynamicLoaderWindowsDYLD",1178    srcs = glob(["DynamicLoader/Windows-DYLD/*.cpp"]),1179    hdrs = glob(["DynamicLoader/Windows-DYLD/*.h"]),1180    includes = [".."],1181    deps = [1182        "//lldb:Core",1183        "//lldb:Headers",1184        "//lldb:Target",1185        "//lldb:TargetHeaders",1186        "//lldb:Utility",1187        "//llvm:TargetParser",1188    ],1189)1190 1191cc_library(1192    name = "PluginDynamicLoaderHexagonDYLD",1193    srcs = glob(["DynamicLoader/Hexagon-DYLD/*.cpp"]),1194    hdrs = glob(["DynamicLoader/Hexagon-DYLD/*.h"]),1195    includes = [".."],1196    deps = [1197        "//lldb:Breakpoint",1198        "//lldb:Core",1199        "//lldb:Headers",1200        "//lldb:Symbol",1201        "//lldb:SymbolHeaders",1202        "//lldb:Target",1203        "//lldb:TargetHeaders",1204        "//lldb:Utility",1205    ],1206)1207 1208cc_library(1209    name = "PluginDynamicLoaderWasmDYLD",1210    srcs = glob(["DynamicLoader/wasm-DYLD/*.cpp"]),1211    hdrs = glob(["DynamicLoader/wasm-DYLD/*.h"]),1212    includes = [".."],1213    deps = [1214        ":PluginObjectFileWasm",1215        "//lldb:Core",1216        "//lldb:Target",1217        "//lldb:TargetHeaders",1218        "//lldb:Utility",1219    ],1220)1221 1222cc_library(1223    name = "PluginDynamicLoaderStatic",1224    srcs = glob(["DynamicLoader/Static/*.cpp"]),1225    hdrs = glob(["DynamicLoader/Static/*.h"]),1226    includes = [".."],1227    deps = [1228        "//lldb:Core",1229        "//lldb:Host",1230        "//lldb:Symbol",1231        "//lldb:SymbolHeaders",1232        "//lldb:Target",1233        "//lldb:TargetHeaders",1234        "//lldb:Utility",1235    ],1236)1237 1238cc_library(1239    name = "PluginDynamicLoaderMacOSXDYLD",1240    srcs = glob(["DynamicLoader/MacOSX-DYLD/*.cpp"]),1241    hdrs = glob(["DynamicLoader/MacOSX-DYLD/*.h"]),1242    includes = [".."],1243    deps = [1244        ":PluginObjCRuntime",1245        ":PluginTypeSystemClang",1246        ":PluginTypeSystemClangHeaders",1247        "//lldb:Breakpoint",1248        "//lldb:Core",1249        "//lldb:Expression",1250        "//lldb:Host",1251        "//lldb:Symbol",1252        "//lldb:SymbolHeaders",1253        "//lldb:Target",1254        "//lldb:TargetHeaders",1255        "//lldb:Utility",1256        "//llvm:Support",1257        "//llvm:TargetParser",1258    ],1259)1260 1261gentbl_cc_library(1262    name = "DynamicLoaderDarwinKernelProperties",1263    strip_include_prefix = "DynamicLoader/Darwin-Kernel",1264    tbl_outs = {1265        "DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernelProperties.inc": ["-gen-lldb-property-defs"],1266        "DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernelPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],1267    },1268    tblgen = "//lldb:lldb-tblgen",1269    td_file = "DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernelProperties.td",1270    deps = ["//lldb:CoreTdFiles"],1271)1272 1273cc_library(1274    name = "PluginDynamicLoaderDarwinKernelHeaders",1275    hdrs = glob(["DynamicLoader/Darwin-Kernel/*.h"]),1276    includes = [".."],1277)1278 1279cc_library(1280    name = "PluginDynamicLoaderDarwinKernel",1281    srcs = glob(["DynamicLoader/Darwin-Kernel/*.cpp"]),1282    includes = [".."],1283    tags = ["nobuildkite"],1284    deps = [1285        ":DynamicLoaderDarwinKernelProperties",1286        ":PluginDynamicLoaderDarwinKernelHeaders",1287        ":PluginObjectFileMachO",1288        ":PluginPlatformMacOSX",1289        "//lldb:Breakpoint",1290        "//lldb:Core",1291        "//lldb:Host",1292        "//lldb:InterpreterHeaders",1293        "//lldb:Symbol",1294        "//lldb:SymbolHeaders",1295        "//lldb:Target",1296        "//lldb:TargetHeaders",1297        "//lldb:Utility",1298    ],1299)1300 1301cc_library(1302    name = "PluginArchitecturePPC64",1303    srcs = glob(["Architecture/PPC64/*.cpp"]),1304    hdrs = glob(["Architecture/PPC64/*.h"]),1305    includes = [".."],1306    deps = [1307        ":PluginProcessUtility",1308        "//lldb:Core",1309        "//lldb:SymbolHeaders",1310        "//lldb:Target",1311        "//lldb:TargetHeaders",1312        "//lldb:Utility",1313        "//llvm:BinaryFormat",1314    ],1315)1316 1317cc_library(1318    name = "PluginArchitectureMips",1319    srcs = glob(["Architecture/Mips/*.cpp"]),1320    hdrs = glob(["Architecture/Mips/*.h"]),1321    includes = [".."],1322    deps = [1323        "//lldb:Core",1324        "//lldb:SymbolHeaders",1325        "//lldb:Target",1326        "//lldb:TargetHeaders",1327        "//lldb:Utility",1328    ],1329)1330 1331cc_library(1332    name = "PluginArchitectureArm",1333    srcs = glob(["Architecture/Arm/*.cpp"]),1334    hdrs = glob(["Architecture/Arm/*.h"]),1335    includes = [".."],1336    deps = [1337        ":PluginProcessUtility",1338        "//lldb:Core",1339        "//lldb:SymbolHeaders",1340        "//lldb:Target",1341        "//lldb:TargetHeaders",1342        "//lldb:Utility",1343        "//lldb:UtilityPrivateHeaders",1344    ],1345)1346 1347cc_library(1348    name = "PluginArchitectureAArch64",1349    srcs = glob(["Architecture/AArch64/*.cpp"]),1350    hdrs = glob(["Architecture/AArch64/*.h"]),1351    includes = [".."],1352    deps = [1353        ":PluginProcessUtility",1354        "//lldb:Core",1355        "//lldb:Target",1356        "//lldb:TargetHeaders",1357        "//lldb:Utility",1358    ],1359)1360 1361cc_library(1362    name = "PluginDisassemblerLLVMC",1363    srcs = glob(["Disassembler/LLVMC/*.cpp"]),1364    hdrs = glob(["Disassembler/LLVMC/*.h"]),1365    includes = [".."],1366    deps = [1367        "//lldb:Core",1368        "//lldb:Symbol",1369        "//lldb:SymbolHeaders",1370        "//lldb:Target",1371        "//lldb:TargetHeaders",1372        "//lldb:Utility",1373        "//llvm:MC",1374        "//llvm:MCDisassembler",1375        "//llvm:Support",1376        "//llvm:TargetParser",1377    ],1378)1379 1380cc_library(1381    name = "PluginSymbolFileSymtab",1382    srcs = glob(["SymbolFile/Symtab/*.cpp"]),1383    hdrs = glob(["SymbolFile/Symtab/*.h"]),1384    includes = [".."],1385    deps = [1386        "//lldb:Core",1387        "//lldb:Symbol",1388        "//lldb:SymbolHeaders",1389        "//lldb:Utility",1390    ],1391)1392 1393cc_library(1394    name = "PluginSymbolFileCTF",1395    srcs = glob(["SymbolFile/CTF/*.cpp"]),1396    hdrs = glob(["SymbolFile/CTF/*.h"]),1397    includes = [".."],1398    deps = [1399        ":PluginExpressionParserClangHeaders",1400        ":PluginTypeSystemClangHeaders",1401        "//lldb:Core",1402        "//lldb:Headers",1403        "//lldb:Host",1404        "//lldb:Symbol",1405        "//lldb:SymbolHeaders",1406        "//lldb:Utility",1407        "//llvm:Support",1408        "//llvm:config",1409        "//third-party:zlib",1410    ],1411)1412 1413cc_library(1414    name = "PluginSymbolFileJSON",1415    srcs = glob(["SymbolFile/JSON/*.cpp"]),1416    hdrs = glob(["SymbolFile/JSON/*.h"]),1417    includes = [".."],1418    deps = [1419        ":PluginObjectFileJSON",1420        "//lldb:Core",1421        "//lldb:Symbol",1422        "//lldb:SymbolHeaders",1423        "//lldb:Utility",1424        "//llvm:Support",1425    ],1426)1427 1428cc_library(1429    name = "PluginSymbolFileBreakpad",1430    srcs = glob(["SymbolFile/Breakpad/*.cpp"]),1431    hdrs = glob(["SymbolFile/Breakpad/*.h"]),1432    includes = [".."],1433    deps = [1434        ":PluginObjectFileBreakpad",1435        "//lldb:Core",1436        "//lldb:Host",1437        "//lldb:Symbol",1438        "//lldb:SymbolHeaders",1439        "//lldb:Utility",1440        "//llvm:Support",1441    ],1442)1443 1444cc_library(1445    name = "PluginInstructionPPC64",1446    srcs = glob(["Instruction/PPC64/*.cpp"]),1447    hdrs = glob(["Instruction/PPC64/*.h"]),1448    includes = [".."],1449    deps = [1450        ":PluginProcessUtility",1451        "//lldb:Core",1452        "//lldb:InterpreterHeaders",1453        "//lldb:Symbol",1454        "//lldb:SymbolHeaders",1455        "//lldb:Utility",1456    ],1457)1458 1459cc_library(1460    name = "PluginInstructionLoongArch",1461    srcs = glob(["Instruction/LoongArch/*.cpp"]),1462    hdrs = glob(["Instruction/LoongArch/*.h"]),1463    includes = [".."],1464    deps = [1465        ":PluginProcessUtility",1466        "//lldb:Core",1467        "//lldb:InterpreterHeaders",1468        "//lldb:Symbol",1469        "//lldb:SymbolHeaders",1470        "//lldb:Utility",1471        "//llvm:Support",1472    ],1473)1474 1475cc_library(1476    name = "PluginInstructionMIPS",1477    srcs = glob(["Instruction/MIPS/*.cpp"]),1478    hdrs = glob(["Instruction/MIPS/*.h"]),1479    includes = [".."],1480    deps = [1481        ":PluginProcessUtility",1482        "//lldb:Core",1483        "//lldb:Symbol",1484        "//lldb:SymbolHeaders",1485        "//lldb:Target",1486        "//lldb:TargetHeaders",1487        "//lldb:Utility",1488        "//llvm:MC",1489        "//llvm:MCDisassembler",1490        "//llvm:Support",1491    ],1492)1493 1494cc_library(1495    name = "PluginInstructionMIPS64",1496    srcs = glob(["Instruction/MIPS64/*.cpp"]),1497    hdrs = glob(["Instruction/MIPS64/*.h"]),1498    includes = [".."],1499    deps = [1500        ":PluginProcessUtility",1501        "//lldb:Core",1502        "//lldb:Host",1503        "//lldb:InterpreterHeaders",1504        "//lldb:Symbol",1505        "//lldb:SymbolHeaders",1506        "//lldb:Utility",1507        "//llvm:MC",1508        "//llvm:MCDisassembler",1509        "//llvm:Support",1510    ],1511)1512 1513cc_library(1514    name = "PluginInstructionARM",1515    srcs = glob(["Instruction/ARM/*.cpp"]),1516    hdrs = glob(["Instruction/ARM/*.h"]),1517    includes = [".."],1518    deps = [1519        ":PluginProcessUtility",1520        "//lldb:Core",1521        "//lldb:Host",1522        "//lldb:InterpreterHeaders",1523        "//lldb:Symbol",1524        "//lldb:SymbolHeaders",1525        "//lldb:Target",1526        "//lldb:TargetHeaders",1527        "//lldb:Utility",1528        "//lldb:UtilityPrivateHeaders",1529        "//llvm:Support",1530    ],1531)1532 1533cc_library(1534    name = "PluginInstructionRISCV",1535    srcs = glob(["Instruction/RISCV/*.cpp"]),1536    hdrs = glob(["Instruction/RISCV/*.h"]),1537    includes = [".."],1538    deps = [1539        ":PluginProcessUtility",1540        "//lldb:Core",1541        "//lldb:InterpreterHeaders",1542        "//lldb:Symbol",1543        "//lldb:SymbolHeaders",1544        "//lldb:Utility",1545        "//llvm:Support",1546    ],1547)1548 1549cc_library(1550    name = "PluginInstructionARM64",1551    srcs = glob(["Instruction/ARM64/*.cpp"]),1552    hdrs = glob(["Instruction/ARM64/*.h"]),1553    includes = [".."],1554    deps = [1555        ":PluginProcessUtility",1556        "//lldb:Core",1557        "//lldb:InterpreterHeaders",1558        "//lldb:Symbol",1559        "//lldb:SymbolHeaders",1560        "//lldb:Utility",1561        "//llvm:Support",1562    ],1563)1564 1565cc_library(1566    name = "PluginInstrumentationRuntimeASanLibsanitizers",1567    srcs = glob(["InstrumentationRuntime/ASanLibsanitizers/*.cpp"]),1568    hdrs = glob(["InstrumentationRuntime/ASanLibsanitizers/*.h"]),1569    includes = [".."],1570    deps = [1571        ":PluginInstrumentationRuntimeUtility",1572        "//lldb:Breakpoint",1573        "//lldb:Core",1574        "//lldb:Symbol",1575        "//lldb:SymbolHeaders",1576        "//lldb:Target",1577        "//lldb:TargetHeaders",1578        "//lldb:Utility",1579    ],1580)1581 1582cc_library(1583    name = "PluginInstrumentationRuntimeTSan",1584    srcs = glob(["InstrumentationRuntime/TSan/*.cpp"]),1585    hdrs = glob(["InstrumentationRuntime/TSan/*.h"]),1586    includes = [".."],1587    deps = [1588        ":PluginProcessUtility",1589        "//lldb:Breakpoint",1590        "//lldb:Core",1591        "//lldb:Expression",1592        "//lldb:Headers",1593        "//lldb:Host",1594        "//lldb:InterpreterHeaders",1595        "//lldb:Symbol",1596        "//lldb:SymbolHeaders",1597        "//lldb:Target",1598        "//lldb:TargetHeaders",1599        "//lldb:Utility",1600    ],1601)1602 1603cc_library(1604    name = "PluginInstrumentationRuntimeASan",1605    srcs = glob(["InstrumentationRuntime/ASan/*.cpp"]),1606    hdrs = glob(["InstrumentationRuntime/ASan/*.h"]),1607    includes = [".."],1608    deps = [1609        ":PluginInstrumentationRuntimeUtility",1610        "//lldb:Breakpoint",1611        "//lldb:Core",1612        "//lldb:Symbol",1613        "//lldb:SymbolHeaders",1614        "//lldb:Target",1615        "//lldb:TargetHeaders",1616        "//lldb:Utility",1617    ],1618)1619 1620cc_library(1621    name = "PluginInstrumentationRuntimeMainThreadChecker",1622    srcs = glob(["InstrumentationRuntime/MainThreadChecker/*.cpp"]),1623    hdrs = glob(["InstrumentationRuntime/MainThreadChecker/*.h"]),1624    includes = [".."],1625    deps = [1626        ":PluginProcessUtility",1627        "//lldb:Breakpoint",1628        "//lldb:Core",1629        "//lldb:Expression",1630        "//lldb:Headers",1631        "//lldb:InterpreterHeaders",1632        "//lldb:Symbol",1633        "//lldb:SymbolHeaders",1634        "//lldb:Target",1635        "//lldb:TargetHeaders",1636        "//lldb:Utility",1637    ],1638)1639 1640cc_library(1641    name = "PluginInstrumentationRuntimeUBSan",1642    srcs = glob(["InstrumentationRuntime/UBSan/*.cpp"]),1643    hdrs = glob(["InstrumentationRuntime/UBSan/*.h"]),1644    includes = [".."],1645    deps = [1646        ":PluginProcessUtility",1647        "//lldb:Breakpoint",1648        "//lldb:Core",1649        "//lldb:Expression",1650        "//lldb:Headers",1651        "//lldb:Host",1652        "//lldb:InterpreterHeaders",1653        "//lldb:Symbol",1654        "//lldb:SymbolHeaders",1655        "//lldb:Target",1656        "//lldb:TargetHeaders",1657        "//lldb:Utility",1658    ],1659)1660 1661cc_library(1662    name = "PluginInstrumentationRuntimeUtility",1663    srcs = glob(["InstrumentationRuntime/Utility/*.cpp"]),1664    hdrs = glob(["InstrumentationRuntime/Utility/*.h"]),1665    includes = [".."],1666    deps = [1667        "//lldb:Breakpoint",1668        "//lldb:Core",1669        "//lldb:Expression",1670        "//lldb:Headers",1671        "//lldb:Symbol",1672        "//lldb:Target",1673        "//lldb:TargetHeaders",1674        "//lldb:Utility",1675        "//lldb:UtilityHeaders",1676    ],1677)1678 1679gentbl_cc_library(1680    name = "JITLoaderGDBProperties",1681    strip_include_prefix = "JITLoader/GDB",1682    tbl_outs = {1683        "JITLoader/GDB/JITLoaderGDBProperties.inc": ["-gen-lldb-property-defs"],1684        "JITLoader/GDB/JITLoaderGDBPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],1685    },1686    tblgen = "//lldb:lldb-tblgen",1687    td_file = "JITLoader/GDB/JITLoaderGDBProperties.td",1688    deps = ["//lldb:CoreTdFiles"],1689)1690 1691cc_library(1692    name = "PluginJITLoaderGDB",1693    srcs = glob(["JITLoader/GDB/*.cpp"]),1694    hdrs = glob(["JITLoader/GDB/*.h"]),1695    includes = [".."],1696    deps = [1697        ":JITLoaderGDBProperties",1698        ":PluginObjectFileMachO",1699        "//lldb:Breakpoint",1700        "//lldb:Core",1701        "//lldb:InterpreterHeaders",1702        "//lldb:Symbol",1703        "//lldb:SymbolHeaders",1704        "//lldb:Target",1705        "//lldb:TargetHeaders",1706        "//lldb:Utility",1707        "//llvm:Support",1708    ],1709)1710 1711cc_library(1712    name = "PluginSymbolLocatorDefault",1713    srcs = glob(["SymbolLocator/Default/*.cpp"]),1714    hdrs = glob(["SymbolLocator/Default/*.h"]),1715    includes = [".."],1716    deps = [1717        ":PluginObjectFileWasm",1718        "//lldb:Core",1719        "//lldb:Headers",1720        "//lldb:Host",1721        "//lldb:Symbol",1722        "//lldb:SymbolHeaders",1723        "//lldb:TargetHeaders",1724        "//lldb:Utility",1725        "//llvm:Support",1726    ],1727)1728 1729gentbl_cc_library(1730    name = "SymbolLocatorDebuginfodProperties",1731    strip_include_prefix = "SymbolLocator/Debuginfod",1732    tbl_outs = {1733        "SymbolLocator/Debuginfod/SymbolLocatorDebuginfodProperties.inc": ["-gen-lldb-property-defs"],1734        "SymbolLocator/Debuginfod/SymbolLocatorDebuginfodPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],1735    },1736    tblgen = "//lldb:lldb-tblgen",1737    td_file = "SymbolLocator/Debuginfod/SymbolLocatorDebuginfodProperties.td",1738    deps = ["//lldb:CoreTdFiles"],1739)1740 1741cc_library(1742    name = "PluginSymbolLocatorDebuginfod",1743    srcs = glob(["SymbolLocator/Debuginfod/*.cpp"]),1744    hdrs = glob(["SymbolLocator/Debuginfod/*.h"]),1745    includes = [".."],1746    deps = [1747        ":SymbolLocatorDebuginfodProperties",1748        "//lldb:Core",1749        "//lldb:Headers",1750        "//lldb:Host",1751        "//lldb:InterpreterHeaders",1752        "//lldb:Symbol",1753        "//lldb:SymbolHeaders",1754        "//lldb:Utility",1755        "//llvm:Debuginfod",1756    ],1757)1758 1759cc_library(1760    name = "PluginSymbolLocatorDebugSymbols",1761    srcs = glob(["SymbolLocator/DebugSymbols/*.cpp"]),1762    hdrs = glob(["SymbolLocator/DebugSymbols/*.h"]),1763    includes = [".."],1764    tags = ["nobuildkite"],1765    deps = [1766        ":PluginObjectFileWasm",1767        "//lldb:Core",1768        "//lldb:Host",1769        "//lldb:HostMacOSXPrivateHeaders",1770        "//lldb:Symbol",1771        "//lldb:SymbolHeaders",1772        "//lldb:TargetHeaders",1773        "//lldb:Utility",1774        "//llvm:Support",1775    ],1776)1777 1778# TODO: python support1779# cc_library(1780#     name = "PluginOperatingSystemPython",1781#     srcs = glob(["OperatingSystem/Python/*.cpp"]),1782#     hdrs = glob(["OperatingSystem/Python/*.h"]),1783#     includes = [".."],1784#     deps = [1785#         "//lldb:Core",1786#         "//lldb:Interpreter",1787#         ":PluginProcessUtility",1788#         "//lldb:Symbol",1789#         "//lldb:Target",1790#     ],1791# )1792# cc_library(1793#     name = "PluginScriptInterpreterPythonInterfaces",1794#     srcs = glob(["ScriptInterpreter/Python/Interfaces/*.cpp"]),1795#     hdrs = glob(["ScriptInterpreter/Python/Interfaces/*.h"]),1796#     includes = [".."],1797#     deps = [1798#         "//lldb:Core",1799#         "//lldb:Host",1800#         "//lldb:Interpreter",1801#         "//lldb:Target",1802#         "@rules_python//python/cc:current_py_cc_headers",1803#         "@rules_python//python/cc:current_py_cc_libs",1804#     ],1805# )1806# cc_library(1807#     name = "PluginScriptInterpreterPythonHeaders",1808#     hdrs = glob(["ScriptInterpreter/Python/*.h"]),1809#     includes = [".."],1810#     deps = [1811#         "//lldb:Host",1812#     ],1813# )1814# cc_library(1815#     name = "PluginScriptInterpreterPython",1816#     srcs = glob(["ScriptInterpreter/Python/*.cpp"]),1817#     local_defines = [1818#         'LLDB_PYTHON_EXE_RELATIVE_PATH=\\"bin/python3\\"',1819#         # Must be kept in sync with WORKSPACE python version1820#         'LLDB_PYTHON_RELATIVE_LIBDIR=\\"lib/python3.11/site-packages\\"',1821#     ],1822#     includes = [".."],1823#     deps = [1824#         "//lldb:Breakpoint",1825#         "//lldb:Core",1826#         "//lldb:DataFormatters",1827#         "//lldb:Host",1828#         "//lldb:Interpreter",1829#         ":PluginScriptInterpreterPythonHeaders",1830#         ":PluginScriptInterpreterPythonInterfaces",1831#         "//lldb:Target",1832#     ],1833# )1834 1835# TODO: lua support1836# cc_library(1837#     name = "PluginScriptInterpreterLua",1838#     srcs = glob(["ScriptInterpreter/Lua/*.cpp"]),1839#     hdrs = glob(["ScriptInterpreter/Lua/*.h"]),1840#     includes = [".."],1841#     deps = [1842#         "//lldb:Core",1843#         "//lldb:Interpreter",1844#     ],1845# )1846 1847cc_library(1848    name = "PluginScriptInterpreterNone",1849    srcs = glob(["ScriptInterpreter/None/*.cpp"]),1850    hdrs = glob(["ScriptInterpreter/None/*.h"]),1851    includes = [".."],1852    deps = [1853        "//lldb:Core",1854        "//lldb:InterpreterHeaders",1855        "//lldb:Utility",1856        "//llvm:Support",1857    ],1858)1859 1860cc_library(1861    name = "PluginSystemRuntimeMacOSX",1862    srcs = glob(["SystemRuntime/MacOSX/*.cpp"]),1863    hdrs = glob(["SystemRuntime/MacOSX/*.h"]),1864    includes = [".."],1865    deps = [1866        ":PluginProcessUtility",1867        ":PluginTypeSystemClang",1868        ":PluginTypeSystemClangHeaders",1869        "//lldb:Breakpoint",1870        "//lldb:Core",1871        "//lldb:Expression",1872        "//lldb:Headers",1873        "//lldb:Host",1874        "//lldb:Symbol",1875        "//lldb:SymbolHeaders",1876        "//lldb:Target",1877        "//lldb:TargetHeaders",1878        "//lldb:Utility",1879    ],1880)1881 1882cc_library(1883    name = "PluginObjectFileCOFF",1884    srcs = glob(["ObjectFile/COFF/*.cpp"]),1885    hdrs = glob(["ObjectFile/COFF/*.h"]),1886    includes = [".."],1887    deps = [1888        "//lldb:Core",1889        "//lldb:Host",1890        "//lldb:Symbol",1891        "//lldb:SymbolHeaders",1892        "//lldb:Target",1893        "//lldb:Utility",1894        "//llvm:Object",1895        "//llvm:Support",1896    ],1897)1898 1899cc_library(1900    name = "PluginObjectFileWasm",1901    srcs = glob(["ObjectFile/wasm/*.cpp"]),1902    hdrs = glob(["ObjectFile/wasm/*.h"]),1903    includes = [".."],1904    deps = [1905        "//lldb:Core",1906        "//lldb:Host",1907        "//lldb:Symbol",1908        "//lldb:SymbolHeaders",1909        "//lldb:TargetHeaders",1910        "//lldb:Utility",1911        "//llvm:BinaryFormat",1912        "//llvm:Support",1913    ],1914)1915 1916cc_library(1917    name = "PluginObjectFileJSON",1918    srcs = glob(["ObjectFile/JSON/*.cpp"]),1919    hdrs = glob(["ObjectFile/JSON/*.h"]),1920    includes = [".."],1921    deps = [1922        "//lldb:Core",1923        "//lldb:Host",1924        "//lldb:Symbol",1925        "//lldb:SymbolHeaders",1926        "//lldb:Target",1927        "//lldb:TargetHeaders",1928        "//lldb:Utility",1929        "//llvm:Support",1930    ],1931)1932 1933cc_library(1934    name = "PluginObjectFilePlaceholder",1935    srcs = glob(["ObjectFile/Placeholder/*.cpp"]),1936    hdrs = glob(["ObjectFile/Placeholder/*.h"]),1937    includes = [".."],1938    deps = [1939        "//lldb:Core",1940        "//lldb:Headers",1941        "//lldb:Host",1942        "//lldb:Symbol",1943        "//lldb:SymbolHeaders",1944        "//lldb:Target",1945        "//lldb:TargetHeaders",1946        "//lldb:Utility",1947    ],1948)1949 1950cc_library(1951    name = "PluginObjectFileMachO",1952    srcs = glob(["ObjectFile/Mach-O/*.cpp"]),1953    hdrs = glob(["ObjectFile/Mach-O/*.h"]),1954    includes = [".."],1955    deps = [1956        ":PluginProcessUtility",1957        "//lldb:Core",1958        "//lldb:Host",1959        "//lldb:Symbol",1960        "//lldb:SymbolHeaders",1961        "//lldb:Target",1962        "//lldb:TargetHeaders",1963        "//lldb:Utility",1964        "//llvm:Support",1965    ],1966)1967 1968cc_library(1969    name = "PluginObjectFileMinidump",1970    srcs = glob(["ObjectFile/Minidump/*.cpp"]),1971    hdrs = glob(["ObjectFile/Minidump/*.h"]),1972    includes = [".."],1973    deps = [1974        ":PluginProcessMinidump",1975        ":PluginProcessUtility",1976        "//lldb:Core",1977        "//lldb:Headers",1978        "//lldb:Host",1979        "//lldb:Symbol",1980        "//lldb:SymbolHeaders",1981        "//lldb:Target",1982        "//lldb:TargetHeaders",1983        "//lldb:Utility",1984        "//llvm:BinaryFormat",1985        "//llvm:Object",1986        "//llvm:Support",1987        "//llvm:TargetParser",1988    ],1989)1990 1991gentbl_cc_library(1992    name = "ObjectFilePECOFFProperties",1993    strip_include_prefix = "ObjectFile/PECOFF",1994    tbl_outs = {1995        "ObjectFile/PECOFF/ObjectFilePECOFFProperties.inc": ["-gen-lldb-property-defs"],1996        "ObjectFile/PECOFF/ObjectFilePECOFFPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],1997    },1998    tblgen = "//lldb:lldb-tblgen",1999    td_file = "ObjectFile/PECOFF/ObjectFilePECOFFProperties.td",2000    deps = ["//lldb:CoreTdFiles"],2001)2002 2003cc_library(2004    name = "PluginObjectFilePECOFF",2005    srcs = glob(["ObjectFile/PECOFF/*.cpp"]),2006    hdrs = glob(["ObjectFile/PECOFF/*.h"]),2007    includes = [".."],2008    deps = [2009        ":ObjectFilePECOFFProperties",2010        ":PluginProcessUtility",2011        "//lldb:Core",2012        "//lldb:Host",2013        "//lldb:InterpreterHeaders",2014        "//lldb:Symbol",2015        "//lldb:SymbolHeaders",2016        "//lldb:Target",2017        "//lldb:TargetHeaders",2018        "//lldb:Utility",2019        "//llvm:BinaryFormat",2020        "//llvm:Object",2021        "//llvm:Support",2022        "//llvm:TargetParser",2023    ],2024)2025 2026cc_library(2027    name = "PluginObjectFileBreakpad",2028    srcs = glob(["ObjectFile/Breakpad/*.cpp"]),2029    hdrs = glob(["ObjectFile/Breakpad/*.h"]),2030    includes = [".."],2031    deps = [2032        "//lldb:Core",2033        "//lldb:Headers",2034        "//lldb:Host",2035        "//lldb:Symbol",2036        "//lldb:SymbolHeaders",2037        "//lldb:Utility",2038        "//llvm:Support",2039        "//llvm:TargetParser",2040    ],2041)2042 2043cc_library(2044    name = "PluginObjectFileELF",2045    srcs = glob(["ObjectFile/ELF/*.cpp"]),2046    hdrs = glob(["ObjectFile/ELF/*.h"]),2047    includes = [".."],2048    deps = [2049        "//lldb:Core",2050        "//lldb:Headers",2051        "//lldb:Host",2052        "//lldb:Symbol",2053        "//lldb:SymbolHeaders",2054        "//lldb:Target",2055        "//lldb:TargetHeaders",2056        "//lldb:Utility",2057        "//llvm:BinaryFormat",2058        "//llvm:Object",2059        "//llvm:Support",2060    ],2061)2062 2063cc_library(2064    name = "PluginUnwindAssemblyX86",2065    srcs = glob(["UnwindAssembly/x86/*.cpp"]),2066    hdrs = glob(["UnwindAssembly/x86/*.h"]),2067    includes = [".."],2068    deps = [2069        "//lldb:Core",2070        "//lldb:Headers",2071        "//lldb:Symbol",2072        "//lldb:SymbolHeaders",2073        "//lldb:Target",2074        "//lldb:TargetHeaders",2075        "//lldb:Utility",2076        "//llvm:MCDisassembler",2077        "//llvm:Support",2078    ],2079)2080 2081cc_library(2082    name = "PluginUnwindAssemblyInstEmulation",2083    srcs = glob(["UnwindAssembly/InstEmulation/*.cpp"]),2084    hdrs = glob(["UnwindAssembly/InstEmulation/*.h"]),2085    includes = [".."],2086    deps = [2087        "//lldb:Core",2088        "//lldb:Headers",2089        "//lldb:Symbol",2090        "//lldb:SymbolHeaders",2091        "//lldb:Target",2092        "//lldb:TargetHeaders",2093        "//lldb:Utility",2094    ],2095)2096 2097cc_library(2098    name = "PluginProcessPOSIX",2099    srcs = glob(["Process/POSIX/*.cpp"]),2100    hdrs = glob(["Process/POSIX/*.h"]),2101    includes = [".."],2102    deps = [2103        ":PluginProcessUtility",2104        "//lldb:Headers",2105        "//lldb:Host",2106        "//lldb:TargetHeaders",2107        "//lldb:Utility",2108        "//llvm:BinaryFormat",2109        "//llvm:Support",2110    ],2111)2112 2113cc_library(2114    name = "PluginProcessLinux",2115    srcs = glob(["Process/Linux/*.cpp"]),2116    hdrs = glob(["Process/Linux/*.h"]),2117    includes = [".."],2118    target_compatible_with = select({2119        "@platforms//os:linux": [],2120        "//conditions:default": ["@platforms//:incompatible"],2121    }),2122    deps = [2123        ":PluginProcessPOSIX",2124        ":PluginProcessUtility",2125        "//lldb:Core",2126        "//lldb:Headers",2127        "//lldb:Host",2128        "//lldb:SymbolHeaders",2129        "//lldb:TargetHeaders",2130        "//lldb:Utility",2131        "//llvm:Support",2132        "//llvm:TargetParser",2133    ],2134)2135 2136cc_library(2137    name = "PluginScriptedProcess",2138    srcs = glob(["Process/scripted/*.cpp"]),2139    hdrs = glob(["Process/scripted/*.h"]),2140    includes = [".."],2141    deps = [2142        ":PluginObjectFilePlaceholder",2143        ":PluginProcessUtility",2144        "//lldb:Core",2145        "//lldb:Host",2146        "//lldb:InterpreterHeaders",2147        "//lldb:Target",2148        "//lldb:TargetHeaders",2149        "//lldb:Utility",2150    ],2151)2152 2153cc_library(2154    name = "PluginProcessMachCore",2155    srcs = glob(["Process/mach-core/*.cpp"]),2156    hdrs = glob(["Process/mach-core/*.h"]),2157    includes = [".."],2158    tags = ["nobuildkite"],2159    deps = [2160        ":PluginDynamicLoaderDarwinKernelHeaders",2161        ":PluginDynamicLoaderMacOSXDYLD",2162        ":PluginDynamicLoaderStatic",2163        ":PluginObjectFileMachO",2164        ":PluginPlatformMacOSX",2165        ":PluginProcessUtility",2166        "//lldb:Breakpoint",2167        "//lldb:Core",2168        "//lldb:Headers",2169        "//lldb:Host",2170        "//lldb:Symbol",2171        "//lldb:SymbolHeaders",2172        "//lldb:Target",2173        "//lldb:TargetHeaders",2174        "//lldb:Utility",2175        "//llvm:Support",2176    ],2177)2178 2179cc_library(2180    name = "PluginProcessElfCore",2181    srcs = glob(["Process/elf-core/*.cpp"]),2182    hdrs = glob(["Process/elf-core/*.h"]),2183    includes = [".."],2184    deps = [2185        ":PluginDynamicLoaderPosixDYLDHeaders",2186        ":PluginObjectFileELF",2187        ":PluginProcessUtility",2188        "//lldb:Core",2189        "//lldb:Target",2190        "//lldb:TargetHeaders",2191        "//lldb:Utility",2192        "//llvm:BinaryFormat",2193        "//llvm:Support",2194    ],2195)2196 2197gentbl_cc_library(2198    name = "ProcessKDPProperties",2199    strip_include_prefix = "Process/MacOSX-Kernel",2200    tbl_outs = {2201        "Process/MacOSX-Kernel/ProcessKDPProperties.inc": ["-gen-lldb-property-defs"],2202        "Process/MacOSX-Kernel/ProcessKDPPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],2203    },2204    tblgen = "//lldb:lldb-tblgen",2205    td_file = "Process/MacOSX-Kernel/ProcessKDPProperties.td",2206    deps = ["//lldb:CoreTdFiles"],2207)2208 2209cc_library(2210    name = "PluginProcessMacOSXKernel",2211    srcs = glob(["Process/MacOSX-Kernel/*.cpp"]),2212    hdrs = glob(["Process/MacOSX-Kernel/*.h"]),2213    includes = [".."],2214    tags = ["nobuildkite"],2215    target_compatible_with = select({2216        "@platforms//os:macos": [],2217        "//conditions:default": ["@platforms//:incompatible"],2218    }),2219    deps = [2220        ":PluginDynamicLoaderDarwinKernel",2221        ":PluginDynamicLoaderDarwinKernelHeaders",2222        ":PluginDynamicLoaderStatic",2223        ":PluginProcessUtility",2224        ":ProcessKDPProperties",2225        "//lldb:Breakpoint",2226        "//lldb:Core",2227        "//lldb:Headers",2228        "//lldb:Host",2229        "//lldb:InterpreterHeaders",2230        "//lldb:Symbol",2231        "//lldb:SymbolHeaders",2232        "//lldb:Target",2233        "//lldb:TargetHeaders",2234        "//lldb:Utility",2235        "//llvm:Support",2236    ],2237)2238 2239cc_library(2240    name = "PluginProcessMinidump",2241    srcs = glob(["Process/minidump/*.cpp"]),2242    hdrs = glob(["Process/minidump/*.h"]),2243    includes = [".."],2244    deps = [2245        ":PluginDynamicLoaderPosixDYLD",2246        ":PluginDynamicLoaderPosixDYLDHeaders",2247        ":PluginObjectFilePlaceholder",2248        ":PluginProcessElfCore",2249        ":PluginProcessUtility",2250        "//lldb:Core",2251        "//lldb:Headers",2252        "//lldb:InterpreterHeaders",2253        "//lldb:Target",2254        "//lldb:TargetHeaders",2255        "//lldb:Utility",2256        "//lldb:UtilityPrivateHeaders",2257        "//llvm:BinaryFormat",2258        "//llvm:Object",2259        "//llvm:Support",2260    ],2261)2262 2263cc_library(2264    name = "PluginCXXItaniumABI",2265    srcs = glob(["LanguageRuntime/CPlusPlus/ItaniumABI/*.cpp"]),2266    hdrs = glob(["LanguageRuntime/CPlusPlus/ItaniumABI/*.h"]),2267    includes = [".."],2268    deps = [2269        ":PluginCPPRuntime",2270        ":PluginTypeSystemClang",2271        ":PluginTypeSystemClangHeaders",2272        "//lldb:Breakpoint",2273        "//lldb:Core",2274        "//lldb:DataFormattersHeaders",2275        "//lldb:ExpressionHeaders",2276        "//lldb:Headers",2277        "//lldb:InterpreterHeaders",2278        "//lldb:Symbol",2279        "//lldb:SymbolHeaders",2280        "//lldb:Target",2281        "//lldb:TargetHeaders",2282        "//lldb:Utility",2283    ],2284)2285 2286cc_library(2287    name = "PluginGNUstepObjCRuntime",2288    srcs = glob(["LanguageRuntime/ObjC/GNUstepObjCRuntime/*.cpp"]),2289    hdrs = glob(["LanguageRuntime/ObjC/GNUstepObjCRuntime/*.h"]),2290    includes = [".."],2291    deps = [2292        ":PluginExpressionParserClang",2293        ":PluginObjCRuntime",2294        ":PluginTypeSystemClang",2295        ":PluginTypeSystemClangHeaders",2296        "//lldb:Breakpoint",2297        "//lldb:Core",2298        "//lldb:Expression",2299        "//lldb:Headers",2300        "//lldb:Host",2301        "//lldb:Symbol",2302        "//lldb:Target",2303        "//lldb:TargetHeaders",2304        "//lldb:Utility",2305        "//llvm:Support",2306    ],2307)2308 2309cc_library(2310    name = "PluginRegisterTypeBuilderClang",2311    srcs = glob(["RegisterTypeBuilder/*.cpp"]),2312    hdrs = glob(["RegisterTypeBuilder/*.h"]),2313    includes = [".."],2314    deps = [2315        ":PluginTypeSystemClangHeaders",2316        "//clang:ast",2317        "//lldb:Core",2318        "//lldb:Headers",2319        "//lldb:Target",2320        "//lldb:TargetHeaders",2321    ],2322)2323 2324_DEFAULT_LOAD_PLUGINS = "\n".join(["LLDB_PLUGIN({})".format(x) for x in DEFAULT_PLUGINS]) + \2325                        "\n" + "\n".join(["LLDB_SCRIPT_PLUGIN({})".format(x) for x in DEFAULT_SCRIPT_PLUGINS])2326 2327expand_template(2328    name = "plugins_config_gen",2329    out = "Plugins.def",2330    substitutions = {2331        "@LLDB_PROCESS_WINDOWS_PLUGIN@": "",2332        "@LLDB_PROCESS_GDB_PLUGIN@": "LLDB_PLUGIN(ProcessGDBRemote)",2333    } | select({2334        "@platforms//os:macos": {2335            "@LLDB_ENUM_PLUGINS@": _DEFAULT_LOAD_PLUGINS + """2336LLDB_PLUGIN(ProcessMacOSXKernel)2337LLDB_PLUGIN(SymbolLocatorDebugSymbols)2338LLDB_PLUGIN(SymbolVendorMacOSX)2339""",2340        },2341        "//conditions:default": {2342            "@LLDB_ENUM_PLUGINS@": _DEFAULT_LOAD_PLUGINS,2343        },2344    }),2345    template = "Plugins.def.in",2346)2347 2348cc_library(2349    name = "PluginsConfig",2350    hdrs = [":plugins_config_gen"],2351    includes = [".."],2352)2353