File tree Expand file tree Collapse file tree 5 files changed +13
-17
lines changed Expand file tree Collapse file tree 5 files changed +13
-17
lines changed Original file line number Diff line number Diff line change @@ -339,12 +339,12 @@ class Language : public PluginInterface {
339
339
340
340
virtual llvm::StringRef GetInstanceVariableName () { return {}; }
341
341
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 {
348
348
return false ;
349
349
}
350
350
Original file line number Diff line number Diff line change @@ -258,7 +258,7 @@ class TargetProperties : public Properties {
258
258
259
259
bool GetDebugUtilityExpression () const ;
260
260
261
- bool GetIgnoreBreakpointsFromLanguageArtificialLocations () const ;
261
+ bool GetEnableLanguageFilterForLineBreakpoints () const ;
262
262
263
263
private:
264
264
// Callbacks for m_launch_info.
Original file line number Diff line number Diff line change @@ -205,14 +205,12 @@ void BreakpointResolver::SetSCMatchesByLine(
205
205
llvm::StringRef log_ident, uint32_t line, std::optional<uint16_t > column) {
206
206
llvm::SmallVector<SymbolContext, 16 > all_scs;
207
207
const bool ShouldQueryLanguageFilter =
208
- GetBreakpoint ()
209
- ->GetTarget ()
210
- .GetIgnoreBreakpointsFromLanguageArtificialLocations ();
208
+ GetBreakpoint ()->GetTarget ().GetEnableLanguageFilterForLineBreakpoints ();
211
209
212
210
for (uint32_t i = 0 ; i < sc_list.GetSize (); ++i) {
213
211
if (ShouldQueryLanguageFilter)
214
212
if (Language *lang = Language::FindPlugin (sc_list[i].GetLanguage ());
215
- lang && lang->IsArtificialCtxForLineBreakpoint (sc_list[i]))
213
+ lang && lang->IgnoreForLineBreakpoints (sc_list[i]))
216
214
continue ;
217
215
all_scs.push_back (sc_list[i]);
218
216
}
Original file line number Diff line number Diff line change @@ -4896,10 +4896,8 @@ void TargetProperties::SetDebugUtilityExpression(bool debug) {
4896
4896
SetPropertyAtIndex (idx, debug);
4897
4897
}
4898
4898
4899
- bool TargetProperties::GetIgnoreBreakpointsFromLanguageArtificialLocations ()
4900
- const {
4901
- const uint32_t idx =
4902
- ePropertyIgnoreBreakpointsFromLanguageArtificialLocations;
4899
+ bool TargetProperties::GetEnableLanguageFilterForLineBreakpoints () const {
4900
+ const uint32_t idx = ePropertyEnableLanguageFilterForLineBreakpoints;
4903
4901
return GetPropertyAtIndexAs<bool >(
4904
4902
idx, g_target_properties[idx].default_uint_value != 0 );
4905
4903
}
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ let Definition = "target" in {
104
104
def BreakpointUseAvoidList: Property<"breakpoints-use-platform-avoid-list", "Boolean">,
105
105
DefaultTrue,
106
106
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">,
108
108
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.">;
110
110
def Arg0: Property<"arg0", "String">,
111
111
DefaultStringValue<"">,
112
112
Desc<"The first argument passed to the program in the argument array which can be different from the executable itself.">;
You can’t perform that action at this time.
0 commit comments