This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v3 13/15] btrace: increase buffer size for exception test
- From: Markus Metzger <markus dot t dot metzger at intel dot com>
- To: palves at redhat dot com
- Cc: gdb-patches at sourceware dot org, Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Date: Thu, 29 Jan 2015 17:28:17 +0100
- Subject: [PATCH v3 13/15] btrace: increase buffer size for exception test
- Authentication-results: sourceware.org; auth=none
- References: <1422548899-9789-1-git-send-email-markus dot t dot metzger at intel dot com>
The trace for throwing and catching an exception can be quite big.
Increase the buffer size to avoid spurious fails.
CC: Jan Kratochvil <jan.kratochvil@redhat.com>
2015-01-29 Markus Metzger <markus.t.metzger@intel.com>
testsuite/
* gdb.btrace/exception.exp: Increase BTS buffer size.
---
gdb/testsuite/gdb.btrace/exception.exp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.btrace/exception.exp b/gdb/testsuite/gdb.btrace/exception.exp
index 9148eb1..0c43273 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.*"
--
1.8.3.1