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