亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? tls.exp

?? gdb-6.8 Linux下的調(diào)試程序 最新版本
?? EXP
字號:
# tls.exp -- Expect script to test thread-local storage# Copyright (C) 1992, 2003, 2007, 2008 Free Software Foundation, Inc.# This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 3 of the License, or# (at your option) any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the# GNU General Public License for more details.## You should have received a copy of the GNU General Public License# along with this program.  If not, see <http://www.gnu.org/licenses/>.  */# Please email any bugs, comments, and/or additions to this file to:# bug-gdb@prep.ai.mit.eduset testfile tlsset srcfile ${testfile}.cset binfile ${objdir}/${subdir}/${testfile}if [istarget "*-*-linux"] then {    set target_cflags "-D_MIT_POSIX_THREADS"} else {    set target_cflags ""}if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } {    return -1}### Compute the value of the a_thread_local variable.proc compute_expected_value {value} {    set expected_value 0    set i 0    while { $i <= $value} {        incr expected_value $i        incr i    }    return $expected_value}### Get the value of the variable 'me' for the current thread.proc get_me_variable {tnum} {    global expect_out    global gdb_prompt    global decimal    set value_of_me -1    send_gdb "print me\n"    gdb_expect {	-re ".*= ($decimal).*\r\n$gdb_prompt $" {	    set value_of_me $expect_out(1,string)	    pass "$tnum thread print me"        }	-re "$gdb_prompt $" {	    fail "$tnum thread print me"	}	timeout {	    fail "$tnum thread print me (timeout)" 	}    }    return ${value_of_me}}### Check the values of the thread local variables in the thread.### Also check that info address print the right things.proc check_thread_local {number} {    set me_variable [get_me_variable $number]    set expected_value [compute_expected_value ${me_variable}]    gdb_test "p a_thread_local" \	    "= $expected_value" \	    "${number} thread local storage"    gdb_test "p another_thread_local" \	    "= $me_variable" \	    "${number} another thread local storage"    gdb_test "info address a_thread_local" \	    ".*a_thread_local.*a thread-local variable at offset.*" \	    "${number} info address a_thread_local"    gdb_test "info address another_thread_local" \    	    ".*another_thread_local.*a thread-local variable at offset.*" \	    "${number} info address another_thread_local"}### Select a particular thread.proc select_thread {thread} {    global gdb_prompt    send_gdb "thread $thread\n"    gdb_expect {	-re "\\\[Switching to thread .*\\\].*\r\n$gdb_prompt $" {	    pass "selected thread: $thread"	}	-re "$gdb_prompt $" {	    fail "selected thread: $thread"	}	timeout {	    fail "selected thread: $thread (timeout)"	}    }}### Do a backtrace for the current thread, and check that the 'spin' routine### is in it. This means we have one of the threads we created, rather### than the main thread. Record the thread in the spin_threads ### array. Also remember the level of the 'spin' routine in the backtrace, for ### later use.proc check_thread_stack {number spin_threads spin_threads_level} {    global gdb_prompt    global expect_out    global decimal    global hex    upvar $spin_threads tarr    upvar $spin_threads_level tarrl    select_thread $number    send_gdb "where\n"    gdb_expect {	-re ".*(\[0-9\]+)\[ \t\]+$hex in spin \\(vp=(0x\[0-9a-f\]+).*\r\n$gdb_prompt $" {	    if {[info exists tarr($number)]} {		fail "backtrace of thread number $number in spin"	    } else {		pass "backtrace of thread number $number in spin"                set level $expect_out(1,string)		set tarrl($number) $level		set tarr($number) 1	    }	}	-re ".*$gdb_prompt $" {	 set tarr($number) 0	 set tarrl($number) 0	 pass "backtrace of thread number $number not relevant"	}	timeout {	    fail "backtrace of thread number $number (timeout)" 	}    }}gdb_exitgdb_startgdb_reinitialize_dir $srcdir/$subdirgdb_load ${binfile}if ![runto_main] then {   fail "Can't run to main"   return 0}# Set a breakpoint at the "spin" routine to# test the thread local's value.  #gdb_test "b [gdb_get_line_number "here we know tls value"]" \         ".*Breakpoint 2.*tls.*"   "set breakpoint at all threads"# Set a bp at a point where we know all threads are alive.#gdb_test "b [gdb_get_line_number "still alive"]" \         ".*Breakpoint 3.*tls.*" "set breakpoint at synch point"# Set a bp at the end to see if all threads are finished.#gdb_test "b [gdb_get_line_number "before exit"]" \         ".*Breakpoint 4.*tls.*" "set breakpoint at exit"send_gdb "continue\n"gdb_expect {    -re ".*Program received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {        # This is the first symptom if the gcc and binutils versions        # in use support TLS, but the system glibc does not.        unsupported "continue to first thread: system does not support TLS"        return -1    }    -re ".*Program exited normally.*$gdb_prompt $" {        fail "continue to first thread: program runaway"    }    -re ".*Pass 0 done.*Pass 1 done.*$gdb_prompt $" {        fail "continue to first thread: program runaway 2"    }    -re ".*Breakpoint 2.*tls value.*$gdb_prompt $" {        pass "continue to first thread: get to thread"    }    -re ".*$gdb_prompt $" {        fail "continue to first thread: no progress?"    }    timeout { fail "continue to first thread (timeout)" }}gdb_test "info thread" ".*Thread.*spin.*" \	"at least one th in spin while stopped at first th"check_thread_local "first"gdb_test "continue" ".*Breakpoint 2.*tls value.*" "continue to second thread"gdb_test "info thread" "Thread.*spin.*" \	"at least one th in spin while stopped at second th"check_thread_local "second"gdb_test "continue" ".*Breakpoint 2.*tls value.*" "continue to third thread"gdb_test "info thread" ".*Thread.*spin.*" \	"at least one th in spin while stopped at third th"check_thread_local "third"gdb_test "continue" ".*Breakpoint 3.*still alive.*" "continue to synch point"set no_of_threads 0send_gdb "info thread\n"gdb_expect {	-re "^info thread\[ \t\r\n\]+(\[0-9\]+) Thread.*$gdb_prompt $" {	   set no_of_threads $expect_out(1,string)	   pass "get number of threads"        }	-re "$gdb_prompt $" {	    fail "get number of threads"	}	timeout {	    fail "get number of threads (timeout)"	}}array set spin_threads {}unset spin_threadsarray set spin_threads_level {}unset spin_threads_level# For each thread check its backtrace to see if it is stopped at the# spin routine. for {set i 1} {$i <= $no_of_threads} {incr i} {    check_thread_stack $i spin_threads spin_threads_level}### Loop through the threads and check the values of the tls variables.### keep track of how many threads we find in the spin routine.set thrs_in_spin 0foreach i [array names spin_threads] {    if {$spin_threads($i) == 1} {      incr thrs_in_spin      select_thread $i      set level $spin_threads_level($i)      # We expect to be in sem_wait, but if the thread has not yet      # been scheduled, we might be in sem_post still.  We could be at      # any intermediate point in spin, too, but that is much less      # likely.      gdb_test "up $level" ".*spin.*sem_(wait|post).*" "thread $i up"      check_thread_local $i     }}if {$thrs_in_spin == 0} {  fail "No thread backtrace reported spin (vsyscall kernel problem?)"}gdb_test "continue" ".*Breakpoint 4.*before exit.*" "threads exited"send_gdb "info thread\n" gdb_expect {    -re ".* 1 Thread.*2 Thread.*$gdb_prompt $" {        fail "Too many threads left at end"    }    -re ".*\\\* 1 Thread.*main.*$gdb_prompt $" {        pass "Expect only base thread at end"    }    -re ".*No stack.*$gdb_prompt $" {        fail "runaway at end"    }    -re ".*$gdb_prompt $" {        fail "mess at end"    }    timeout { fail "at end (timeout)" }}# Start over and do some "info address" stuff#runto spingdb_test "info address a_global" \	".*a_global.*static storage at address.*" "info address a_global"setup_kfail "gdb/1294" "*-*-*"gdb_test "info address me" ".*me.*is a variable at offset.*" "info address me"# Done!#gdb_exitreturn 0

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久青草欧美一区二区三区| 欧美一区二区啪啪| 国产精品成人免费精品自在线观看| 国产一区二区三区| 国产精品久久久久三级| 一本大道av一区二区在线播放 | 欧美亚洲日本一区| 依依成人综合视频| 在线电影国产精品| 国产麻豆精品在线| 中文字幕一区二区三区乱码在线| 91久久香蕉国产日韩欧美9色| 日韩有码一区二区三区| 精品国产亚洲在线| www.在线成人| 丝袜a∨在线一区二区三区不卡| 精品精品欲导航| av毛片久久久久**hd| 亚洲一卡二卡三卡四卡五卡| 精品久久免费看| 91美女片黄在线| 免费成人在线观看视频| 中文字幕一区二区三区不卡在线| 欧美亚洲动漫制服丝袜| 国精产品一区一区三区mba视频| 国产精品国产三级国产aⅴ原创| 欧美日韩视频在线第一区| 国产激情精品久久久第一区二区| 一区二区三区蜜桃| 欧美大片在线观看| 一本一道久久a久久精品| 久久精品99国产精品| 亚洲欧美一区二区三区久本道91 | 久久99日本精品| 国产精品的网站| 欧美电影免费观看高清完整版在 | 91丨九色丨黑人外教| 日本中文字幕一区二区有限公司| 国产精品久线在线观看| 欧美一区二区女人| 一本高清dvd不卡在线观看| 另类小说一区二区三区| 玉足女爽爽91| 国产精品免费久久久久| 欧美一级久久久久久久大片| 色综合天天综合狠狠| 国产真实乱偷精品视频免| 亚洲国产人成综合网站| 亚洲国产精品成人综合| 日韩欧美你懂的| 欧美曰成人黄网| 精品午夜一区二区三区在线观看| 亚洲一二三区不卡| 亚洲品质自拍视频网站| 国产精品区一区二区三区| 精品黑人一区二区三区久久| 7799精品视频| 在线观看精品一区| 91老师国产黑色丝袜在线| 国产精品一区二区黑丝| 狠狠色丁香久久婷婷综| 捆绑调教一区二区三区| 日韩精品久久理论片| 亚洲第四色夜色| 亚洲一区二区美女| 亚洲综合一区二区三区| 亚洲男人天堂av网| 亚洲伦理在线免费看| 亚洲视频小说图片| 亚洲乱码国产乱码精品精98午夜| 国产精品白丝在线| 国产精品久久久久一区二区三区| 国产喂奶挤奶一区二区三区| 久久久天堂av| 亚洲国产精品成人综合| 26uuu久久天堂性欧美| 欧美不卡视频一区| 亚洲精品一区二区三区四区高清| 精品国免费一区二区三区| 26uuu亚洲婷婷狠狠天堂| 久久先锋影音av鲁色资源| 久久先锋影音av| 欧美国产精品一区二区三区| 国产精品九色蝌蚪自拍| 日韩理论电影院| 亚洲国产毛片aaaaa无费看| 亚洲成人精品一区二区| 日本视频免费一区| 国产在线精品一区二区三区不卡| 国产一区二区三区在线看麻豆| 国产高清精品久久久久| 播五月开心婷婷综合| 91在线看国产| 在线观看日韩电影| 日韩一级欧美一级| 久久久久久综合| 最新不卡av在线| 五月婷婷综合在线| 免费观看在线综合| 高清国产一区二区| 欧美做爰猛烈大尺度电影无法无天| 精品视频色一区| 精品国内二区三区| 亚洲女与黑人做爰| 日本欧美一区二区在线观看| 国产精品一区不卡| 91福利社在线观看| 欧美一区二区久久| 中文字幕在线不卡视频| 日韩在线一区二区| 国产69精品一区二区亚洲孕妇| 色婷婷av一区| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 麻豆91在线播放| 岛国一区二区三区| 欧美丝袜丝交足nylons图片| 亚洲精品一区二区三区四区高清| 亚洲视频在线观看三级| 久久国产视频网| 色综合久久中文综合久久牛| 欧美成人三级电影在线| 亚洲精品亚洲人成人网在线播放| 精品一区二区精品| 欧美特级限制片免费在线观看| 国产三级一区二区| 男女男精品视频网| 91视频观看免费| 久久久亚洲高清| 日韩精品一二三四| 日本精品一区二区三区四区的功能| 精品99999| 日韩成人av影视| 91国偷自产一区二区三区成为亚洲经典| 欧美一级片免费看| 亚洲精品中文在线观看| 国产精华液一区二区三区| 日韩一区二区影院| 亚洲成人午夜影院| 91麻豆国产福利精品| 欧美高清在线一区二区| 久久99国产精品免费| 欧美高清视频在线高清观看mv色露露十八| 亚洲国产精品v| 韩国v欧美v亚洲v日本v| 3d动漫精品啪啪一区二区竹菊| 亚洲精品免费在线| av一区二区久久| 国产日产欧美精品一区二区三区| 免费欧美在线视频| 欧美日韩国产成人在线91| 一区二区三区日韩精品视频| av一二三不卡影片| 国产精品日韩成人| 成人影视亚洲图片在线| 国产午夜亚洲精品羞羞网站| 激情综合一区二区三区| 日韩欧美久久久| 日本麻豆一区二区三区视频| 欧美日韩国产a| 五月婷婷激情综合网| 91蝌蚪porny| 亚洲激情校园春色| 一本一本大道香蕉久在线精品| 91国产福利在线| 欧美激情中文字幕| 国产成人亚洲综合a∨婷婷图片| 久久这里都是精品| 国产自产2019最新不卡| 精品国产乱码久久久久久久 | 久久精品亚洲乱码伦伦中文| 激情文学综合丁香| 久久综合av免费| 国产一区二区导航在线播放| 精品久久久久久亚洲综合网| 国产伦精品一区二区三区在线观看| 精品国产伦一区二区三区免费 | 久久99最新地址| 欧美一级高清片在线观看| 婷婷国产v国产偷v亚洲高清| 91精品国产欧美一区二区18| 蜜臂av日日欢夜夜爽一区| 日韩欧美一级二级三级久久久| 麻豆国产欧美日韩综合精品二区| 日韩精品在线看片z| 久久国产尿小便嘘嘘| 久久久久久久久久久久久女国产乱| 国产aⅴ综合色| 亚洲视频一区在线观看| 欧美日韩卡一卡二| 九九久久精品视频| 国产精品三级av在线播放| 色悠悠亚洲一区二区| 视频一区视频二区中文| 久久人人爽爽爽人久久久| av亚洲精华国产精华精华| 偷拍与自拍一区| 久久综合资源网| 日本道精品一区二区三区| 美国十次了思思久久精品导航| 国产午夜精品在线观看|