diff options
author | Fred Fish <fnf@specifix.com> | 1992-10-31 00:35:08 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-10-31 00:35:08 +0000 |
commit | e35843d4765fa27825fe85c0437416d643b9769d (patch) | |
tree | 7af536a6df9b3f54d9f98b6688e661db7f5882d6 /gdb/Makefile.in | |
parent | b533ed94796344e799926b1e407034e151f9b0d7 (diff) | |
download | gdb-e35843d4765fa27825fe85c0437416d643b9769d.zip gdb-e35843d4765fa27825fe85c0437416d643b9769d.tar.gz gdb-e35843d4765fa27825fe85c0437416d643b9769d.tar.bz2 |
* Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
remap all malloc's to xmalloc's and all realloc's to xrealloc's.
* c-exp.y, m2-exp.y: Add comment about how malloc/realloc are
remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
file. Remove preprocessor defines that previously did remapping.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r-- | gdb/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 9e0c0c4..c4a5cda 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -673,6 +673,8 @@ c-exp.tab.c: $(srcdir)/c-exp.y -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ + -e 's/malloc/xmalloc/g' \ + -e 's/realloc/xrealloc/g' \ < y.tab.c > c-exp.tab.c -rm y.tab.c @@ -684,6 +686,8 @@ m2-exp.tab.c: $(srcdir)/m2-exp.y -sed -e '/extern.*malloc/d' \ -e '/extern.*realloc/d' \ -e '/extern.*free/d' \ + -e 's/malloc/xmalloc/g' \ + -e 's/realloc/xrealloc/g' \ < y.tab.c > m2-exp.tab.c -rm y.tab.c |