Home | History | Annotate | Download | only in gdb

Lines Matching refs:CONDITION

85    and a std::string_view into the original breakpoint condition string.  */
95 CONDITION,
104 /* This is the token for the -force-condition token, the m_content for
121 case type::CONDITION:
122 return string_printf ("{ CONDITION: \"%s\" }",
185 /* Split STR, a breakpoint condition string, into a vector of tokens where
186 each token represents a component of the condition. Tokens are first
189 unknown token, which we assume is the other end of the 'if' condition.
209 the same location as the condition then we must have found the
210 other end of the condition string -- we're done. */
222 if (t.length () > 1 && startswith ("-force-condition", t))
241 check that we have not reached the start of the condition string. */
245 /* Use token T here as that must also be part of the condition
260 For the 'if' token we need to capture the entire condition
261 string, so record the start of the condition string and then
262 start scanning backwards looking for the end of the condition
292 be the other end of the condition string, obviously, this is
294 line, but this will be spotted when the condition is
311 /* If we found the start of a condition string then we should have
312 switched to backward scan mode, and found the end of the condition
313 string. Capture the whole condition string into COND_STRING
320 forward_results.emplace_back (token::type::CONDITION, v);
324 /* If we didn't have a condition start pointer then we should still
342 we found an 'if' condition (which will be the last thing in the
345 The last tokens from the input string (those after the 'if' condition)
348 condition.
352 of the 'if' condition, and merge the token with the 'if' condition.
355 when parsing the 'if' condition.
364 valid thread-id, and so we merge 'thread )' into the 'if' condition
367 This code also handles the special treatment for '-force-condition',
369 flag, if it occurred immediately after the 'if' condition, would be
370 treated as part of the 'if' condition. When the breakpoint condition
374 == token::type::CONDITION));
409 the 'if' condition, in which case we can discard the last token
534 case token::type::CONDITION:
564 test (const char *input, const char *condition, int thread = -1,
593 if ((condition == nullptr) != (extracted_condition.get () == nullptr)
594 || (condition != nullptr
595 && strcmp (condition, extracted_condition.get ()) != 0)
607 debug_printf ("condition: '%s'\n", extracted_condition.get ());
644 /* Test parsing valid breakpoint condition strings. */
651 test (" if blah thread 1 -force-condition", "blah", global_thread_num,
653 test (" -force-condition if blah thread 1", "blah", global_thread_num,
655 test (" -force-condition if blah thread 1 ", "blah", global_thread_num,
657 test ("thread 1 -force-condition if blah", "blah", global_thread_num,
667 /* Test parsing some invalid breakpoint condition strings. */