X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmacroexp.c;h=f85cb4b13584dd9c7a76df048675ae6b296a04ac;hb=93f9b408658edc2c6993893ed07d6686ad9929c3;hp=a7ca6e04ecabc4e64fb2270390b794ddbcc564f1;hpb=0a029df55b1dcf3878d3680c359d199185ba3a9e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/macroexp.c b/gdb/macroexp.c index a7ca6e04ec..f85cb4b135 100644 --- a/gdb/macroexp.c +++ b/gdb/macroexp.c @@ -1,12 +1,12 @@ /* C preprocessor macro expansion for GDB. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2007, 2008 Free Software Foundation, Inc. Contributed by Red Hat, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -15,9 +15,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include "defs.h" #include "gdb_obstack.h" @@ -81,9 +79,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 +710,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 (;;)