]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
btrace: increase buffer size for exception test
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 23 Jan 2015 14:13:20 +0000 (15:13 +0100)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 25 Mar 2015 13:15:07 +0000 (14:15 +0100)
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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.btrace/exception.exp

index 9d9c086446dc2f037fd5885913b35300c9ebb491..f066b8af80fc1991402ec3c38178669cf24f31fa 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-25  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * gdb.btrace/exception.exp: Increase BTS buffer size.
+
 2015-03-24  Pedro Alves  <palves@redhat.com>
 
        * gdb.threads/no-unwaited-for-left.exp: Test "thread apply all".
index 9148eb17893b1ee6bf815e751ab39c8dd6715e52..0c432736caca913b30dafe1aa635c35e06b9aaa1 100755 (executable)
@@ -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.*"