aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-06-20 17:41:11 +0000
committerStu Grossman <grossman@cygnus>1995-06-20 17:41:11 +0000
commit8c19daa1e511e29e51a8a9adb7e774452277fbc6 (patch)
treecd6cb736f766d4c20d0cd3813391ef8684509134 /gdb
parentf1b64caa983829f4b24bc449a90fac8bd6797c91 (diff)
downloadgdb-8c19daa1e511e29e51a8a9adb7e774452277fbc6.zip
gdb-8c19daa1e511e29e51a8a9adb7e774452277fbc6.tar.gz
gdb-8c19daa1e511e29e51a8a9adb7e774452277fbc6.tar.bz2
* gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/gdbtk.c24
2 files changed, 26 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 802fa70..83e8dff 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,7 @@
Tue Jun 20 10:19:40 1995 Stu Grossman (grossman@cygnus.com)
+ * gdbtk.c: Add functions Tcl_Malloc, Tcl_Realloc, and Tcl_Free.
+
* gdbtk.tcl (add_breakpoint_frame): Add more fields.
* (create_file_win create_asm_win build_framework): Create null
bindings for meta keys to keep window from dropping down to
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c
index 9a8d0b3..87b9e33 100644
--- a/gdb/gdbtk.c
+++ b/gdb/gdbtk.c
@@ -68,6 +68,30 @@ static int x_fd; /* X network socket */
static int disassemble_from_exec = -1;
+/* Supply malloc calls for tcl/tk. */
+
+char *
+Tcl_Malloc (size)
+ unsigned int size;
+{
+ return xmalloc (size);
+}
+
+char *
+Tcl_Realloc (ptr, size)
+ char *ptr;
+ unsigned int size;
+{
+ return xrealloc (ptr, size);
+}
+
+void
+Tcl_Free(ptr)
+ char *ptr;
+{
+ free (ptr);
+}
+
static void
null_routine(arg)
int arg;