diff options
author | Martin Hunt <hunt@redhat.com> | 1998-07-27 20:23:58 +0000 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 1998-07-27 20:23:58 +0000 |
commit | 6f5af15b07a5fdae381346a7d680c7a1d7cf553d (patch) | |
tree | 28f90ddfbff82df9a7ebe0857e28447760bb48dd /gdb/gdbtk-hooks.c | |
parent | 55d3002f53eed71b0be3690b57dcd075a758d750 (diff) | |
download | binutils-gdb-6f5af15b07a5fdae381346a7d680c7a1d7cf553d.tar.gz |
Mon Jul 27 13:07:16 1998 Martin M. Hunt <hunt@cygnus.com>
* gdbtk.c (gdbtk_call_command): Removed because it is now
in gdbtk-hooks.c
(null_routine): Removed.
* gdbtk-hooks.c (tracepoint_notify): Fix sprintf to
match number of arguments.
* gdbtk-cmds.c (gdb_loc): When calling gdb_loc with an
argument, call find_pc_line() to get a complete
symtab_and_line struct.
Diffstat (limited to 'gdb/gdbtk-hooks.c')
-rw-r--r-- | gdb/gdbtk-hooks.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/gdb/gdbtk-hooks.c b/gdb/gdbtk-hooks.c index b76f2ff03c5..7d59fb6db4b 100644 --- a/gdb/gdbtk-hooks.c +++ b/gdb/gdbtk-hooks.c @@ -297,16 +297,11 @@ void gdbtk_ignorable_warning (warning) const char *warning; { - char buf[200], *merge[2]; - char *command; - + char buf[512]; sprintf (buf, warning); gdbtk_two_elem_cmd ("gdbtk_tcl_ignorable_warning", buf); - } - - static void pc_changed() { @@ -402,8 +397,7 @@ gdbtk_readline_begin (va_alist) #endif { va_list args; - char buf[200], *merge[2]; - char *command; + char buf[200]; #ifdef ANSI_PROTOTYPES va_start (args, format); @@ -674,7 +668,7 @@ tracepoint_notify(tp, action) filename = symtab_to_filename (sal.symtab); if (filename == NULL) filename = "N/A"; - sprintf (buf, "gdbtk_tcl_tracepoint %s %d 0x%lx %d {%s}", action, tp->number, + sprintf (buf, "gdbtk_tcl_tracepoint %s %d 0x%lx %d {%s} %d", action, tp->number, (long)tp->address, sal.line, filename, tp->pass_count); v = Tcl_Eval (gdbtk_interp, buf); |