Home | History | Annotate | Download | only in gdb

Lines Matching defs:THREAD

92     /* These are the token types for the 'if', 'thread', 'inferior', and
96 THREAD,
124 case type::THREAD:
125 return string_printf ("{ THREAD: \"%s\" }",
161 When OTHER is a keyword/value token, e.g. 'thread 1', the m_content
164 token we automatically merge in the 'thread' part too, as it
266 'thread' must occur before the check for 'task'. We accept
268 'thread', which will only happen if we check 'thread' first. */
279 else if (startswith ("thread", t))
280 curr_results->emplace_back (token::type::THREAD, v);
359 break function if ( variable == thread )
361 Where 'thread' is a local variable within 'function'. When parsing
362 this we will initially see 'thread )' as a thread token with ')' as
364 valid thread-id, and so we merge 'thread )' into the 'if' condition
381 else if (t.get_type () == token::type::THREAD)
475 int thread = -1, inferior = -1, task = -1;
487 case token::type::THREAD:
489 if (thread != -1)
490 thread.");
492 error ("You can specify only one of thread, inferior, or task.");
496 thread = thr->global_num;
503 if (task != -1 || thread != -1)
504 error ("You can specify only one of thread, inferior, or task.");
521 if (inferior != -1 || thread != -1)
522 error ("You can specify only one of thread, inferior, or task.");
547 *thread_ptr = thread;
564 test (const char *input, const char *condition, int thread = -1,
598 || thread != extracted_thread
609 debug_printf ("thread: %d\n", extracted_thread);
646 test (" if blah thread 1", "blah", global_thread_num);
648 test (" if blah thread 1 ", "blah", global_thread_num);
649 test ("thread 1 woof", nullptr, global_thread_num, -1, -1, false, "woof");
650 test ("thread 1 X", nullptr, global_thread_num, -1, -1, false, "X");
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,
660 test ("if ( foo == thread )", "( foo == thread )");
661 test ("if ( foo == thread ) inferior 1", "( foo == thread )", -1, 1);
662 test ("if ( foo == thread ) thread 1", "( foo == thread )",
664 test ("if foo == thread", "foo == thread");
665 test ("if foo == thread 1", "foo ==", global_thread_num);
668 test_error ("thread 1 if foo == 123 thread 1",
669 "You can specify only one thread.");
670 test_error ("thread 1 if foo == 123 inferior 1",
671 "You can specify only one of thread, inferior, or task.");
672 test_error ("thread 1 if foo == 123 task 1",
673 "You can specify only one of thread, inferior, or task.");
676 test_error ("inferior 1 if foo == 123 thread 1",
677 "You can specify only one of thread, inferior, or task.");
679 "You can specify only one of thread, inferior, or task.");
680 test_error ("thread 1.2.3", "Invalid thread ID: 1.2.3");
681 test_error ("thread 1/2", "Invalid thread ID: 1/2");
682 test_error ("thread 1xxx", "Invalid thread ID: 1xxx");