~ubuntu-branches/ubuntu/quantal/gdb/quantal

« back to all changes in this revision

Viewing changes to gdb/testsuite/gdb.base/foll-fork.exp

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-03-15 16:14:08 UTC
  • Revision ID: james.westby@ubuntu.com-20110315161408-o3sk4typcfgzuiqb
Tags: 7.2-1ubuntu10
* Update with changes from the Linaro 7.2-2011.03-0 release (Ulrich Weigand).
* Configure with --with-pkgversion, don't run post-patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
122
122
 
123
123
    set bp_after_fork [gdb_get_line_number "set breakpoint here"]
124
124
 
125
 
    gdb_test "catch fork" "Catchpoint .*(fork).*" \
 
125
    gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
126
126
        "explicit child follow, set catch fork"
127
127
 
128
128
    # Verify that the catchpoint is mentioned in an "info breakpoints",
136
136
    }
137
137
 
138
138
    gdb_test "continue" \
139
 
        "Catchpoint.*(forked process.*),.*in .*(fork|__kernel_v?syscall).*" \
 
139
        "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
140
140
        "explicit child follow, catch fork"
141
141
 
142
142
    # Verify that the catchpoint is mentioned in an "info breakpoints",
184
184
        "unpatch child, set catch fork"
185
185
 
186
186
    gdb_test "continue" \
187
 
        "Catchpoint.*\\(forked process.*\\).*,.*in .*(fork|__kernel_v?syscall).*" \
 
187
        "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
188
188
        "unpatch child, catch fork"
189
189
 
190
190
    # Delete all breakpoints and catchpoints.
225
225
 
226
226
    set bp_after_fork [gdb_get_line_number "set breakpoint here"]
227
227
 
228
 
    gdb_test "catch fork" "Catchpoint .*(fork).*" \
 
228
    gdb_test "catch fork" "Catchpoint \[0-9\]* \\(fork\\)" \
229
229
        "explicit parent follow, set tcatch fork"
230
230
 
231
231
# ??rehrauer: I don't yet know how to get the id of the tcatch
232
232
# via this script, so that I can add a -do list to it.  For now,
233
233
# do the follow stuff after the catch happens.
234
234
 
235
 
    gdb_test "continue" "in .*(fork|__kernel_v?syscall).*" \
 
235
    gdb_test "continue" \
 
236
        "Catchpoint \[0-9\]* \\(forked process \[0-9\]*\\),.*" \
236
237
        "explicit parent follow, tcatch fork"
237
238
 
238
239
    gdb_test_no_output "set follow-fork parent"