diff options
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index ab0cb9e..c68ca6b 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -40,6 +40,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "value.h" #include "parser-defs.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 m2_maxdepth |