⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ena-dis-br.exp

📁 lwip在ucos上的移植
💻 EXP
📖 第 1 页 / 共 2 页
字号:
gdb_expect {  -re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*$gdb_prompt $"\          {pass "info break marker4"}  -re "$gdb_prompt $"\          {fail "info break marker4"}  timeout {fail "(timeout) info break marker4"}}# Verify that we can set a breakpoint with an ignore count N, which# should cause the next N triggers of the bp to be ignored.  (This is# a flavor of enablement/disablement, after all.)#if ![runto_main] then { fail "enable/disable break tests suppressed" }send_gdb "break marker1\n"gdb_expect {  -re "Breakpoint (\[0-9\]*) at .*, line 4\[38\].*$gdb_prompt $"\          {pass "break marker1"}  -re "$gdb_prompt $"\          {fail "break marker1"}  timeout {fail "(timeout) break marker1"}}# Verify that an ignore of a non-existent breakpoint is gracefully# handled.#send_gdb "ignore 999 2\n"gdb_expect {  -re "No breakpoint number 999..*$gdb_prompt $"\          {pass "ignore non-existent break"}  -re "$gdb_prompt $"\          {fail "ignore non-existent break"}  timeout {fail "(timeout) ignore non-existent break"}}# Verify that a missing ignore count is gracefully handled.#send_gdb "ignore $expect_out(1,string) \n"gdb_expect {  -re "Second argument .specified ignore-count. is missing..*$gdb_prompt $"\          {pass "ignore break with missing ignore count"}  -re "$gdb_prompt $"\          {fail "ignore break with missing ignore count"}  timeout {fail "(timeout) ignore break with missing ignore count"}}# Verify that a negative or zero ignore count is handled gracefully# (they both are treated the same).#send_gdb "ignore $expect_out(1,string) -1\n"gdb_expect {  -re "Will stop next time breakpoint \[0-9\]* is reached..*$gdb_prompt $"\          {pass "ignore break marker1 -1"}  -re "$gdb_prompt $"\          {fail "ignore break marker1 -1"}  timeout {fail "(timeout) ignore break marker1 -1"}}send_gdb "ignore $expect_out(1,string) 0\n"gdb_expect {  -re "Will stop next time breakpoint \[0-9\]* is reached..*$gdb_prompt $"\          {pass "ignore break marker1 0"}  -re "$gdb_prompt $"\          {fail "ignore break marker1 0"}  timeout {fail "(timeout) ignore break marker1 0"}}send_gdb "ignore $expect_out(1,string) 1\n"gdb_expect {  -re "Will ignore next crossing of breakpoint \[0-9\]*.*$gdb_prompt $"\          {pass "ignore break marker1"}  -re "$gdb_prompt $"\          {fail "ignore break marker1"}  timeout {fail "(timeout) ignore break marker1"}}send_gdb "info break $expect_out(1,string)\n"gdb_expect {  -re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+y.*ignore next 1 hits.*$gdb_prompt $"\          {pass "info ignored break marker1"}  -re "$gdb_prompt $"\          {fail "info ignored break marker1"}  timeout {fail "(timeout) info ignored break marker1"}}gdb_continue_to_end "no stop at ignored break marker1"rerun_to_main# See the comments in condbreak.exp for "run until breakpoint at marker1" # for an explanation of the xfail below.send_gdb "continue\n"gdb_expect {  -re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $"\          {pass "continue to break marker1, 2nd time"}  -re "Breakpoint \[0-9\]*, $hex in marker1.*$gdb_prompt $"\          {xfail "continue to break marker1, 2nd time"}  -re "$gdb_prompt $"\          {fail "continue to break marker1, 2nd time"}  timeout {fail "(timeout) continue to break marker1, 2nd time"}}# Verify that we can specify both an ignore count and an auto-delete.#if ![runto_main] then { fail "enable/disable break tests suppressed" }send_gdb "break marker1\n"gdb_expect {  -re "Breakpoint (\[0-9\]*) at .*, line 4\[38\].*$gdb_prompt $"\          {pass "break marker1"}  -re "$gdb_prompt $"\          {fail "break marker1"}  timeout {fail "(timeout) break marker1"}}send_gdb "ignore $expect_out(1,string) 1\n"gdb_expect {  -re "Will ignore next crossing of breakpoint \[0-9\]*.*$gdb_prompt $"\          {pass "ignore break marker1"}  -re "$gdb_prompt $"\          {fail "ignore break marker1"}  timeout {fail "(timeout) ignore break marker1"}}send_gdb "enable del $expect_out(1,string)\n"gdb_expect {  -re "$gdb_prompt $"\          {pass "enable del break marker1"}  timeout {fail "(timeout) enable del break marker1"}}send_gdb "info break $expect_out(1,string)\n"gdb_expect {  -re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+del\[ \t\]+y.*ignore next 1 hits.*$gdb_prompt $"\          {pass "info break marker1"}  -re "$gdb_prompt $"\          {fail "info break marker1"}  timeout {fail "(timeout) info break marker2"}}gdb_continue_to_end "no stop at ignored & auto-deleted break marker1"rerun_to_mainsend_gdb "continue\n"gdb_expect {  -re ".*marker1 .*:4\[38\].*$gdb_prompt $"\          {pass "continue to ignored & auto-deleted break marker1"}  -re "Breakpoint \[0-9\]*, marker1.*$gdb_prompt $"\          {fail "continue to ignored & auto-deleted break marker1"}  -re "$gdb_prompt $"\          {fail "continue to ignored & auto-deleted break marker1"}  timeout {fail "(timeout) continue to ignored & auto-deleted break marker1"}}# Verify that a disabled breakpoint's ignore count isn't updated when# the bp is encountered.#if ![runto_main] then { fail "enable/disable break tests suppressed" }send_gdb "break marker1\n"gdb_expect {  -re "Breakpoint (\[0-9\]*) at .*, line 4\[38\].*$gdb_prompt $"\          {pass "break marker1"}  -re "$gdb_prompt $"\          {fail "break marker1"}  timeout {fail "(timeout) break marker1"}}send_gdb "ignore $expect_out(1,string) 10\n"gdb_expect {  -re "Will ignore next 10 crossings of breakpoint \[0-9\]*.*$gdb_prompt $"\          {pass "ignore break marker1"}  -re "$gdb_prompt $"\          {fail "ignore break marker1"}  timeout {fail "(timeout) ignore break marker1"}}send_gdb "disable $expect_out(1,string)\n"gdb_expect {  -re "$gdb_prompt $"\          {pass "disable break marker1"}  timeout {fail "(timeout) disable break marker1"}}gdb_continue_to_end "no stop at ignored & disabled break marker1"rerun_to_mainsend_gdb "info break $expect_out(1,string)\n"gdb_expect {  -re "\[0-9\]*\[ \t\]+breakpoint\[ \t\]+keep\[ \t\]+n.*ignore next 10 hits.*$gdb_prompt $"\          {pass "info ignored & disabled break marker1"}  -re "$gdb_prompt $"\          {fail "info ignored & disabled break marker1"}  timeout {fail "(timeout) info ignored & disabled break marker1"}}# Verify that GDB correctly handles the "continue" command with an argument,# which is an ignore count to set on the currently stopped-at breakpoint.# (Also verify that GDB gracefully handles the case where the inferior# isn't stopped at a breakpoint.)#if ![runto_main] then { fail "enable/disable break tests suppressed" }send_gdb "break 79\n"gdb_expect {  -re "Breakpoint \[0-9\]*.*, line 79.*$gdb_prompt $"\          {pass "prepare to continue with ignore count"}  -re "$gdb_prompt $"\          {fail "prepare to continue with ignore count"}  timeout {fail "(timeout) prepare to continue with ignore count"}}send_gdb "continue 2\n"gdb_expect {  -re "Will ignore next crossing of breakpoint \[0-9\]*.  Continuing..*$gdb_prompt $"\          {pass "continue with ignore count"}  -re "$gdb_prompt $"\          {fail "continue with ignore count"}  timeout {fail "(timeout) continue with ignore count"}}send_gdb "next\n"gdb_expect {  -re ".*81\[ \t\]*marker1.*$gdb_prompt $"\          {pass "step after continue with ignore count"}  -re "$gdb_prompt $"\          {fail "step after continue with ignore count"}  timeout {fail "(timeout) step after continue with ignore count"}}# ??rehrauer: Huh.  This appears to be an actual bug.  (No big# surprise, since this feature hasn't been tested...)  Looks like# GDB is currently trying to set the ignore count of bp # -1!#setup_xfail hppa_*_*send_gdb "continue 2\n"gdb_expect {  -re "Not stopped at any breakpoint; argument ignored..*$gdb_prompt $"\          {pass "continue with ignore count, not stopped at bpt"}  -re "No breakpoint number -1.*$gdb_prompt $"\          {xfail "(DTS'd) continue with ignore count, not stopped at bpt"}  -re "$gdb_prompt $"\          {fail "continue with ignore count, not stopped at bpt"}  timeout {fail "(timeout) step after continue with ignore count, not stopped at bpt"}}gdb_exitreturn 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -