Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1140)

Side by Side Diff: gdb/testsuite/gdb.threads/thread_check.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (C) 2004, 2007-2012 Free Software Foundation, Inc. 1 # Copyright (C) 2004, 2007-2012 Free Software Foundation, Inc.
2 2
3 # This program is free software; you can redistribute it and/or modify 3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by 4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or 5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version. 6 # (at your option) any later version.
7 # 7 #
8 # This program is distributed in the hope that it will be useful, 8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
(...skipping 13 matching lines...) Expand all
24 # 24 #
25 # Test Strategy: 25 # Test Strategy:
26 # - thread_check.c creates 2 threads 26 # - thread_check.c creates 2 threads
27 # - start gdb 27 # - start gdb
28 # - create 2 breakpoints #1 main() #2 tf() (the thread function) 28 # - create 2 breakpoints #1 main() #2 tf() (the thread function)
29 # - run gdb till #1 main() breakpoint is reached 29 # - run gdb till #1 main() breakpoint is reached
30 # - continue to breakpoint #2 tf() 30 # - continue to breakpoint #2 tf()
31 # - delete all breakpoints 31 # - delete all breakpoints
32 # - exit gdb. 32 # - exit gdb.
33 33
34 if $tracelevel then {
35 strace $tracelevel
36 }
37 34
35 standard_testfile
38 36
39 set testfile "thread_check" 37 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab le debug] != "" } {
40 set srcfile ${testfile}.c
41 set binfile ${objdir}/${subdir}/${testfile}
42
43 if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab le [list debug "incdir=${objdir}"]] != "" } {
44 return -1 38 return -1
45 } 39 }
46 40
47 41
48 gdb_start 42 clean_restart ${binfile}
49 gdb_reinitialize_dir $srcdir/$subdir
50 gdb_load ${binfile}
51 43
52 if ![runto_main] then { 44 if ![runto_main] then {
53 fail "Can't run to main" 45 fail "Can't run to main"
54 return 1; 46 return 1;
55 } 47 }
56 48
57 49
58 # 50 #
59 # set breakpoint at thread fucntion tf 51 # set breakpoint at thread fucntion tf
60 # 52 #
(...skipping 20 matching lines...) Expand all
81 73
82 # 74 #
83 # delete all breakpoints 75 # delete all breakpoints
84 # 76 #
85 delete_breakpoints 77 delete_breakpoints
86 78
87 # 79 #
88 # exit gdb 80 # exit gdb
89 # 81 #
90 gdb_exit 82 gdb_exit
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.threads/thread-unwindonsignal.exp ('k') | gdb/testsuite/gdb.threads/thread_events.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698