Skip to content

Commit 838c9f2

Browse files
fixup! rename property
1 parent 7ea76d6 commit 838c9f2

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

lldb/include/lldb/Target/Language.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ class Language : public PluginInterface {
339339

340340
virtual llvm::StringRef GetInstanceVariableName() { return {}; }
341341

342-
// Returns true if this SymbolContext should be used when setting breakpoints
343-
// by line (number or regex). This is useful for languages that create
344-
// artificial functions without any meaningful user code associated with them
345-
// (e.g. code that gets expanded in late compilation stages, like by
346-
// CoroSplitter).
347-
virtual bool IsArtificialCtxForLineBreakpoint(const SymbolContext &) const {
342+
/// Returns true if this SymbolContext should be ignored when setting
343+
/// breakpoints by line (number or regex). This is useful for languages that
344+
/// create artificial functions without any meaningful user code associated
345+
/// with them (e.g. code that gets expanded in late compilation stages, like
346+
/// by CoroSplitter).
347+
virtual bool IgnoreForLineBreakpoints(const SymbolContext &) const {
348348
return false;
349349
}
350350

lldb/include/lldb/Target/Target.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ class TargetProperties : public Properties {
258258

259259
bool GetDebugUtilityExpression() const;
260260

261-
bool GetIgnoreBreakpointsFromLanguageArtificialLocations() const;
261+
bool GetEnableLanguageFilterForLineBreakpoints() const;
262262

263263
private:
264264
// Callbacks for m_launch_info.

lldb/source/Breakpoint/BreakpointResolver.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,14 +205,12 @@ void BreakpointResolver::SetSCMatchesByLine(
205205
llvm::StringRef log_ident, uint32_t line, std::optional<uint16_t> column) {
206206
llvm::SmallVector<SymbolContext, 16> all_scs;
207207
const bool ShouldQueryLanguageFilter =
208-
GetBreakpoint()
209-
->GetTarget()
210-
.GetIgnoreBreakpointsFromLanguageArtificialLocations();
208+
GetBreakpoint()->GetTarget().GetEnableLanguageFilterForLineBreakpoints();
211209

212210
for (uint32_t i = 0; i < sc_list.GetSize(); ++i) {
213211
if (ShouldQueryLanguageFilter)
214212
if (Language *lang = Language::FindPlugin(sc_list[i].GetLanguage());
215-
lang && lang->IsArtificialCtxForLineBreakpoint(sc_list[i]))
213+
lang && lang->IgnoreForLineBreakpoints(sc_list[i]))
216214
continue;
217215
all_scs.push_back(sc_list[i]);
218216
}

lldb/source/Target/Target.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4896,10 +4896,8 @@ void TargetProperties::SetDebugUtilityExpression(bool debug) {
48964896
SetPropertyAtIndex(idx, debug);
48974897
}
48984898

4899-
bool TargetProperties::GetIgnoreBreakpointsFromLanguageArtificialLocations()
4900-
const {
4901-
const uint32_t idx =
4902-
ePropertyIgnoreBreakpointsFromLanguageArtificialLocations;
4899+
bool TargetProperties::GetEnableLanguageFilterForLineBreakpoints() const {
4900+
const uint32_t idx = ePropertyEnableLanguageFilterForLineBreakpoints;
49034901
return GetPropertyAtIndexAs<bool>(
49044902
idx, g_target_properties[idx].default_uint_value != 0);
49054903
}

lldb/source/Target/TargetProperties.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ let Definition = "target" in {
104104
def BreakpointUseAvoidList: Property<"breakpoints-use-platform-avoid-list", "Boolean">,
105105
DefaultTrue,
106106
Desc<"Consult the platform module avoid list when setting non-module specific breakpoints.">;
107-
def IgnoreBreakpointsFromLanguageArtificialLocations: Property<"ignore-breakpoints-from-language-artificial-locations", "Boolean">,
107+
def EnableLanguageFilterForLineBreakpoints: Property<"enable-language-filter-for-line-breakpoints", "Boolean">,
108108
DefaultTrue,
109-
Desc<"If true, locations that are considered artificial by the source Language plugin will be ignored when setting breakpoints by line number or regex.">;
109+
Desc<"If true, allow Language plugins to filter locations when setting breakpoints by line number or regex.">;
110110
def Arg0: Property<"arg0", "String">,
111111
DefaultStringValue<"">,
112112
Desc<"The first argument passed to the program in the argument array which can be different from the executable itself.">;

0 commit comments

Comments
 (0)