From: Markus Metzger Date: Fri, 23 Jan 2015 14:13:20 +0000 (+0100) Subject: btrace: increase buffer size for exception test X-Git-Tag: users/hjl/linux/release/2.25.51.0.2~2^2~19^2~129 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11cc1b74538286b8bc775057fe1300707b3e3520;p=thirdparty%2Fbinutils-gdb.git btrace: increase buffer size for exception test The trace for throwing and catching an exception can be quite big. Increase the buffer size to avoid spurious fails. testsuite/ * gdb.btrace/exception.exp: Increase BTS buffer size. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 9d9c086446d..f066b8af80f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-03-25 Markus Metzger + + * gdb.btrace/exception.exp: Increase BTS buffer size. + 2015-03-24 Pedro Alves * gdb.threads/no-unwaited-for-left.exp: Test "thread apply all". diff --git a/gdb/testsuite/gdb.btrace/exception.exp b/gdb/testsuite/gdb.btrace/exception.exp index 9148eb17893..0c432736cac 100755 --- a/gdb/testsuite/gdb.btrace/exception.exp +++ b/gdb/testsuite/gdb.btrace/exception.exp @@ -40,6 +40,8 @@ gdb_breakpoint $bp_2 # trace the code between the two breakpoints gdb_continue_to_breakpoint "cont to bp.1" ".*$srcfile:$bp_1\r\n.*" +# increase the BTS buffer size - the trace can be quite big +gdb_test_no_output "set record btrace bts buffer-size 128000" gdb_test_no_output "record btrace" gdb_continue_to_breakpoint "cont to bp.2" ".*$srcfile:$bp_2\r\n.*"