6 #define CHUNK_SIZE 16000 /* same as findcmd.c's */
7 #define BUF_SIZE (2 * CHUNK_SIZE) /* at least two chunks */
9 int8_t int8_search_buf[100];
10 int16_t int16_search_buf[100];
11 int32_t int32_search_buf[100];
12 int64_t int64_search_buf[100];
14 static char *search_buf;
15 static int search_buf_size;
20 /* We use a `char[]' type below rather than the typical `char *'
21 to make sure that `str' gets allocated on the stack. Otherwise,
22 the compiler may place the "hello, testsuite" string inside
23 a read-only section, preventing us from over-writing it from GDB. */
24 char str[] = "hello, testsuite";
26 puts (str); /* Break here. */
39 search_buf_size = BUF_SIZE;
40 search_buf = malloc (search_buf_size);
41 if (search_buf == NULL)
43 memset (search_buf, 'x', search_buf_size);
46 int main (int argc, char *argv[])