Debian Codegraph @

utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel

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