diff options
Diffstat (limited to 'gdb/gdbtk.c')
-rw-r--r-- | gdb/gdbtk.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gdb/gdbtk.c b/gdb/gdbtk.c index 9a8d0b3d87..87b9e33f13 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; |