Enable 'set print inferior-events' and improve detach/fork/kill/exit messages
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / hook-stop.exp
index fbdfcfe3d6d878f26cb3eea9c7c752d59f3ec5fe..5717f94fc2a06e5de5a9f04657ff4b6c7601d2a7 100644 (file)
@@ -78,6 +78,7 @@ proc hook_stop_before_frame {} {
 proc hook_stop_kill {} {
     with_test_prefix "hook-stop kills inferior" {
        global gdb_prompt
+       global decimal
 
        setup "kill"
 
@@ -85,7 +86,7 @@ proc hook_stop_kill {} {
 
        set test "run hook-stop"
        gdb_test_multiple "continue" "$test" {
-           -re "Continuing.\r\n${gdb_prompt} $" {
+           -re "Continuing.\r\n\\\[Inferior $decimal \\(.*\\) has been killed\\\]\r\n${gdb_prompt} $" {
                pass $test
            }
        }
This page took 0.027065 seconds and 4 git commands to generate.