aboutsummaryrefslogtreecommitdiff
path: root/gdb/macroexp.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-08-05 21:41:09 +0000
committerJim Blandy <jimb@codesourcery.com>2007-08-05 21:41:09 +0000
commitb1ddacc73c2f63bad81ee74d733c9b7e0cbebbac (patch)
tree44f543056dcff3fd130e7b15f16c9a54ca19971f /gdb/macroexp.c
parent5d9643bae448963730f4a171cdafa15732c302a9 (diff)
downloadgdb-b1ddacc73c2f63bad81ee74d733c9b7e0cbebbac.zip
gdb-b1ddacc73c2f63bad81ee74d733c9b7e0cbebbac.tar.gz
gdb-b1ddacc73c2f63bad81ee74d733c9b7e0cbebbac.tar.bz2
* macroexp.c (init_buffer): Remove testing code that overrides the
caller's length guess. (gather_arguments): Use a larger initial size, now that the vector growth code has been exercised.
Diffstat (limited to 'gdb/macroexp.c')
-rw-r--r--gdb/macroexp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/macroexp.c b/gdb/macroexp.c
index a0ac7cc..68b3862 100644
--- a/gdb/macroexp.c
+++ b/gdb/macroexp.c
@@ -81,9 +81,6 @@ struct macro_buffer
static void
init_buffer (struct macro_buffer *b, int n)
{
- /* Small value for initial testing. */
- n = 1;
-
b->size = n;
if (n > 0)
b->text = (char *) xmalloc (n);
@@ -715,7 +712,7 @@ gather_arguments (const char *name, struct macro_buffer *src, int *argc_p)
get_token (&tok, src);
args_len = 0;
- args_size = 1; /* small for initial testing */
+ args_size = 6;
args = (struct macro_buffer *) xmalloc (sizeof (*args) * args_size);
for (;;)