Add test for user context selection sync
authorAntoine Tremblay <antoine.tremblay@ericsson.com>
Mon, 3 Oct 2016 20:55:35 +0000 (16:55 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Mon, 3 Oct 2016 20:56:24 +0000 (16:56 -0400)
commit9c36d9544f0987cbd840a19552af3343252d28a0
tree2a0be6516f7cbcfb1388b4ad598760d6e4d807af
parent4034d0ff52b0f346efedd2d335ccbc672466da45
Add test for user context selection sync

This patch adds a test to verify that events are sent properly to all
UIs when the user selection context (inferior, thread, frame) changes.

The goal of the C test file is to provide two threads that are stopped with the
same predictable backtrace (so that we can test frame switching).  The barrier
helps us know when the child threads are started.  Then, scheduler-locking is
used to bring each thread one by one to the position we expect them to be
during the test.

gdb/testsuite/ChangeLog:

YYYY-MM-DD  Antoine Tremblay  <antoine.tremblay@ericsson.com>
YYYY-MM-DD  Simon Marchi  <simon.marchi@ericsson.com>

PR gdb/20487
* gdb.mi/user-selected-context-sync.exp: New file.
* gdb.mi/user-selected-context-sync.c: New file.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/user-selected-context-sync.c [new file with mode: 0644]
gdb/testsuite/gdb.mi/user-selected-context-sync.exp [new file with mode: 0644]
This page took 0.031489 seconds and 4 git commands to generate.