Skip to content

Commit 9392652

Browse files
authored
[lldb][docs][NFC] Remove references to obsolete gnu-libstdc++ category (#141610)
This is still leftover from the days when the libc++ and libstdc++ formatters were both written in python and in separate categories. Since then we group libstdc++ and libc++ formatters into the same cateogry. This patch removes references to the obsolete `gnu-libstdc++` category from the docs (and a test). See [this thread](#140761 (comment)) for more context
1 parent 58ead2c commit 9392652

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

lldb/docs/use/variable.rst

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,16 +1209,15 @@ Categories
12091209
----------
12101210

12111211
Categories are a way to group related formatters. For instance, LLDB itself
1212-
groups the formatters for the libstdc++ types in a category named
1213-
gnu-libstdc++. Basically, categories act like containers in which to store
1214-
formatters for a same library or OS release.
1212+
groups the formatters for STL types in a category named cpluspus. Basically,
1213+
categories act like containers in which to store formatters for a same library
1214+
or OS release.
12151215

12161216
By default, several categories are created in LLDB:
12171217

12181218
- default: this is the category where every formatter ends up, unless another category is specified
12191219
- objc: formatters for basic and common Objective-C types that do not specifically depend on macOS
1220-
- gnu-libstdc++: formatters for std::string, std::vector, std::list and std::map as implemented by libstdcpp
1221-
- libcxx: formatters for std::string, std::vector, std::list and std::map as implemented by libcxx
1220+
- cplusplus: formatters for STL types (currently only libc++ and libstdc++ are supported). Enabled when debugging C++ targets.
12221221
- system: truly basic types for which a formatter is required
12231222
- AppKit: Cocoa classes
12241223
- CoreFoundation: CF classes
@@ -1246,12 +1245,11 @@ that the search order is:
12461245
- AppKit
12471246
- CoreServices
12481247
- CoreGraphics
1249-
- gnu-libstdc++
1250-
- libcxx
1248+
- cplusplus
12511249
- VectorTypes
12521250
- system
12531251

1254-
As said, gnu-libstdc++ and libcxx contain formatters for C++ STL data types.
1252+
As said, cplusplus contain formatters for C++ STL data types.
12551253
system contains formatters for char* and char[], which reflect the behavior of
12561254
older versions of LLDB which had built-in formatters for these types. Because
12571255
now these are formatters, you can even replace them with your own if so you

lldb/test/API/functionalities/data-formatter/data-formatter-disabling/TestDataFormatterDisabling.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ def cleanup():
4646
# Execute the cleanup function during test case tear down.
4747
self.addTearDownHook(cleanup)
4848

49-
# self.runCmd('type category enable system VectorTypes libcxx gnu-libstdc++ CoreGraphics CoreServices AppKit CoreFoundation objc default', check=False)
50-
5149
self.expect(
5250
"type category list",
5351
substrs=[

0 commit comments

Comments
 (0)