-
Notifications
You must be signed in to change notification settings - Fork 588
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make alternate_thread_diversion work on LLDB
- Loading branch information
1 parent
b8eeb57
commit 8d3c236
Showing
3 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
from util import * | ||
|
||
send_gdb('b break_here') | ||
expect_gdb('Breakpoint 1') | ||
send_gdb('c') | ||
expect_gdb('Breakpoint 1') | ||
bp = breakpoint_at_function('break_here') | ||
cont() | ||
expect_breakpoint_stop(bp) | ||
|
||
send_gdb('info threads') | ||
expect_gdb(' 1 Thread') | ||
expect_gdb('\\* 2 Thread') | ||
expect_threads(num_threads=2, selected_thread=2) | ||
|
||
send_gdb('thread 1') | ||
expect_gdb('Switching to thread 1') | ||
send_gdb('set scheduler-locking on') | ||
send_gdb('call get_value()') | ||
expect_gdb('1') | ||
send_gdb('set scheduler-locking off') | ||
send_gdb('c') | ||
expect_gdb('SIGKILL') | ||
select_thread(1) | ||
scheduler_locking_on() | ||
expect_expression('get_value()', 1) | ||
scheduler_locking_off() | ||
cont() | ||
expect_signal_stop('SIGKILL') | ||
|
||
ok() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
source `dirname $0`/util.sh | ||
debug_test_gdb_only | ||
debug_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters