aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
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