aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-03-15 01:09:14 +0000
committerFred Fish <fnf@specifix.com>1992-03-15 01:09:14 +0000
commit318bf84ffe5bc5472cefe0c1a838f132f9ac4ff9 (patch)
tree928f9df1d55c71c1bf0d2238a942e8fe5cd9dfc9 /gdb/c-exp.y
parent0750528ab6401a40f6673eeb29b58dea7a6e92b9 (diff)
downloadgdb-318bf84ffe5bc5472cefe0c1a838f132f9ac4ff9.zip
gdb-318bf84ffe5bc5472cefe0c1a838f132f9ac4ff9.tar.gz
gdb-318bf84ffe5bc5472cefe0c1a838f132f9ac4ff9.tar.bz2
Globs of changes. See the ChangeLog for details. Most related to
using the new mmalloc package.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index dc10d2b..c131643 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -39,6 +39,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "value.h"
#include "language.h"
+/* Ensure that if the generated parser contains any calls to malloc/realloc,
+ that they get mapped to xmalloc/xrealloc. */
+
+#define malloc xmalloc
+#define realloc xrealloc
+
/* These MUST be included in any grammar file!!!!
Please choose unique names! */
#define yymaxdepth c_maxdepth