Skip to content

Commit 987c324

Browse files
committed
[lldb] use CXXFLAGS_EXTRAS
1 parent 4dd4146 commit 987c324

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1740,7 +1740,7 @@ lldb::TypeCategoryImplSP CPlusPlusLanguage::GetFormatters() {
17401740
// NOTE: the libstdcpp formatters are loaded after libcxx formatters
17411741
// because we don't want to the libcxx formatters to match the potential
17421742
// `__debug` inline namespace that libstdcpp may use. since LLDB
1743-
// priorities the last loaded matching formatter.
1743+
// prioritizes the last loaded matching formatter.
17441744
LoadLibCxxFormatters(g_category);
17451745
LoadLibStdcppFormatters(g_category);
17461746
LoadSystemFormatters(g_category);

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ def setUp(self):
1919
@add_test_categories(["libstdcxx"])
2020
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
2121
def test_with_run_command(self):
22-
build_args = {"EXE": "a.out"}
23-
self.with_run_command("", build_args)
22+
self.with_run_command("", {})
2423

2524
@add_test_categories(["libstdcxx"])
2625
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
2726
def test_with_run_command_debug(self):
28-
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG", "EXE": "debug_a.out"}
27+
build_args = {"CXXFLAGS_EXTRAS": "-D_GLIBCXX_DEBUG"}
2928
self.with_run_command("__debug::", build_args)
3029

3130
def with_run_command(self, namespace: str, dictionary: dict):
@@ -64,7 +63,6 @@ def cleanup():
6463

6564
match = f"std::{namespace}map<"
6665
self.runCmd(
67-
'type summary add -x "std::map<" --summary-string "map has ${svar%#} items" -e'
6866
f'type summary add -x "{match}" --summary-string "map has ${{svar%#}} items" -e'
6967
)
7068

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ def setUp(self):
1616
# Find the line number to break at.
1717
self.line = line_number("main.cpp", "// Set break point at this line.")
1818

19+
@skip
1920
@add_test_categories(["libstdcxx"])
2021
def test_with_run_command(self):
2122
self.with_run_command({})
2223

2324
@add_test_categories(["libstdcxx"])
2425
def test_with_run_command_debug(self):
25-
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG"}
26+
build_args = {"CXXFLAGS_EXTRAS": "-D_GLIBCXX_DEBUG"}
2627
self.with_run_command(build_args)
2728

2829
def with_run_command(self, dictionary: dict):
2930
"""Test that that file and class static variables display correctly."""
3031
self.build(dictionary=dictionary)
3132
artifact_name = dictionary.get("EXE", "a.out")
32-
self.runCmd("file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET)
3333
self.runCmd(
3434
"file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET
3535
)

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,16 @@ def test_with_run_command(self):
2424
@add_test_categories(["libstdcxx"])
2525
@expectedFailureAll(bugnumber="llvm.org/pr50861", compiler="gcc")
2626
def test_with_run_command_debug(self):
27-
build_args = {"CXXFLAGS": "-D_GLIBCXX_DEBUG"}
27+
build_args = {"CXXFLAGS_EXTRAS": "-D_GLIBCXX_DEBUG"}
2828
self.with_run_command(build_args)
2929

3030
def with_run_command(self, dictionary: dict):
3131
"""Test that that file and class static variables display correctly."""
3232
self.build(dictionary=dictionary)
3333
artifact_name = "a.out"
34-
self.runCmd("file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET)
34+
self.runCmd(
35+
"file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET
36+
)
3537

3638
lldbutil.run_break_set_by_source_regexp(self, "Set break point at this line.")
3739

0 commit comments

Comments
 (0)