public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] GDB/testsuite: Bump up `match_max'
@ 2014-05-17 20:57 Maciej W. Rozycki
  2014-05-19 14:18 ` Tom Tromey
  0 siblings, 1 reply; 16+ messages in thread
From: Maciej W. Rozycki @ 2014-05-17 20:57 UTC (permalink / raw)
  To: gdb-patches

Hi,

 This fixes:

PASS: gdb.base/info-macros.exp: info macro  -a  --  FOO
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: info macros 2
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: info macros 3
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: info macros 4
FAIL: gdb.base/info-macros.exp: info macros *$pc
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: next
FAIL: gdb.base/info-macros.exp: info macros
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: next
FAIL: gdb.base/info-macros.exp: info macros 6
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: next
FAIL: gdb.base/info-macros.exp: info macros 7
ERROR: internal buffer is full.
UNRESOLVED: gdb.base/info-macros.exp: info macros info-macros.c:42 (PRMS gdb/NNNN)

with the arm-eabi target tested on the i686-mingw32 host where GCC defines 
enough macros to exhaust expect's 30000 characters of buffer space.

 OK to apply?

2014-05-17  Maciej W. Rozycki  <macro@codesourcery.com>

	gdb/testsuite/
	* lib/gdb.exp (default_gdb_init): Bump `match_max' up from
	30000 to 65536.

  Maciej

gdb-test-match-max.diff
Index: gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdb.exp
===================================================================
--- gdb-fsf-trunk-quilt.orig/gdb/testsuite/lib/gdb.exp	2014-05-13 02:52:11.347706187 +0100
+++ gdb-fsf-trunk-quilt/gdb/testsuite/lib/gdb.exp	2014-05-17 21:36:38.618201312 +0100
@@ -3539,8 +3539,9 @@ proc default_gdb_init { args } {
     
     # Unlike most tests, we have a small number of tests that generate
     # a very large amount of output.  We therefore increase the expect
-    # buffer size to be able to contain the entire test output.
-    match_max -d 30000
+    # buffer size to be able to contain the entire test output.  This
+    # is especially needed by gdb.base/info-macros.exp.
+    match_max -d 65536
     # Also set this value for the currently running GDB. 
     match_max [match_max -d]
 

^ permalink raw reply	[flat|nested] 16+ messages in thread
* [PATCH] gdb/testsuite: Bump up 'match_max'
@ 2023-10-03 19:53 Thiago Jung Bauermann
  2023-10-04  1:04 ` Simon Marchi
  0 siblings, 1 reply; 16+ messages in thread
From: Thiago Jung Bauermann @ 2023-10-03 19:53 UTC (permalink / raw)
  To: gdb-patches

This fixes "ERROR: internal buffer is full." in gdb.base/maint.exp when
running with "make check-read1".

Also take the opportunity to fix stray whitespace in the vicinity.
---
 gdb/testsuite/lib/gdb.exp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp
index de22da8d8a8c..c6ee4628f8f5 100644
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -6533,13 +6533,14 @@ proc default_gdb_init { test_file_name } {
     if { $gdb_wrapper_target != [current_target_name] } {
 	set gdb_wrapper_initialized 0
     }
-    
+
     # Unlike most tests, we have a small number of tests that generate
     # a very large amount of output.  We therefore increase the expect
     # buffer size to be able to contain the entire test output.  This
-    # is especially needed by gdb.base/info-macros.exp.
-    match_max -d 65536
-    # Also set this value for the currently running GDB. 
+    # is especially needed by gdb.base/info-macros.exp and
+    # gdb.base/maint.exp.
+    match_max -d 196608
+    # Also set this value for the currently running GDB.
     match_max [match_max -d]
 
     # We want to add the name of the TCL testcase to the PASS/FAIL messages.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-10-09  9:49 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-17 20:57 [PATCH] GDB/testsuite: Bump up `match_max' Maciej W. Rozycki
2014-05-19 14:18 ` Tom Tromey
2014-05-19 14:23   ` Joel Brobecker
2014-05-19 14:37     ` Joel Brobecker
2014-05-19 21:22       ` Doug Evans
2014-05-20  0:47         ` Maciej W. Rozycki
2014-05-20  2:05           ` Joel Brobecker
2014-05-21 19:41             ` Maciej W. Rozycki
2023-10-03 19:53 [PATCH] gdb/testsuite: Bump up 'match_max' Thiago Jung Bauermann
2023-10-04  1:04 ` Simon Marchi
2023-10-04 22:43   ` Thiago Jung Bauermann
2023-10-05  1:39     ` Simon Marchi
2023-10-05  2:41       ` Thiago Jung Bauermann
2023-10-06 17:01         ` Andrew Burgess
2023-10-06 20:34           ` Thiago Jung Bauermann
2023-10-09  9:49             ` Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).