forked from Imagelibrary/binutils-gdb
2004-04-21 Andrew Cagney <cagney@redhat.com>
* annotate.h (deprecated_annotate_starting_hook) (deprecated_annotate_stopped_hook) (deprecated_annotate_exited_hook) (deprecated_annotate_signal_hook) (deprecated_annotate_signalled_hook): Deprecate. * tracepoint.h (deprecated_create_tracepoint_hook) (deprecated_delete_tracepoint_hook) (deprecated_modify_tracepoint_hook) (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Deprecate. * target.h (deprecated_target_new_objfile_hook): Deprecate. * remote.h (deprecated_target_resume_hook) (deprecated_target_wait_loop_hook): Deprecate. * gdbcore.h (deprecated_exec_file_display_hook) (deprecated_file_changed_hook): Deprecate. * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate. * defs.h (deprecated_modify_breakpoint_hook) (deprecated_command_loop_hook, deprecated_show_load_progress) (deprecated_print_frame_info_listing_hook) (deprecated_query_hook, deprecated_warning_hook) (deprecated_flush_hook, deprecated_create_breakpoint_hook) (deprecated_delete_breakpoint_hook) (deprecated_interactive_hook, deprecated_registers_changed_hook) (deprecated_readline_begin_hook, deprecated_readline_hook) (deprecated_readline_end_hook, deprecated_register_changed_hook) (deprecated_memory_changed_hook, deprecated_init_ui_hook) (deprecated_context_hook, deprecated_target_wait_hook) (deprecated_attach_hook, deprecated_detach_hook) (deprecated_call_command_hook, deprecated_set_hook) (deprecated_error_hook, deprecated_error_begin_hook) (deprecated_ui_load_progress_hook): Deprecate. * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update. * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update. * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update. * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update. * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update. * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update. * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update. * annotate.c, aix-thread.c: Update.
This commit is contained in:
@@ -65,9 +65,9 @@
|
||||
#define MAX_AGENT_EXPR_LEN 184
|
||||
|
||||
|
||||
extern void (*readline_begin_hook) (char *, ...);
|
||||
extern char *(*readline_hook) (char *);
|
||||
extern void (*readline_end_hook) (void);
|
||||
extern void (*deprecated_readline_begin_hook) (char *, ...);
|
||||
extern char *(*deprecated_readline_hook) (char *);
|
||||
extern void (*deprecated_readline_end_hook) (void);
|
||||
extern void x_command (char *, int);
|
||||
extern int addressprint; /* Print machine addresses? */
|
||||
|
||||
@@ -787,8 +787,8 @@ trace_actions_command (char *args, int from_tty)
|
||||
|
||||
if (from_tty)
|
||||
{
|
||||
if (readline_begin_hook)
|
||||
(*readline_begin_hook) ("%s %s\n", tmpbuf, end_msg);
|
||||
if (deprecated_readline_begin_hook)
|
||||
(*deprecated_readline_begin_hook) ("%s %s\n", tmpbuf, end_msg);
|
||||
else if (input_from_terminal_p ())
|
||||
printf_filtered ("%s\n%s\n", tmpbuf, end_msg);
|
||||
}
|
||||
@@ -797,8 +797,8 @@ trace_actions_command (char *args, int from_tty)
|
||||
t->step_count = 0; /* read_actions may set this */
|
||||
read_actions (t);
|
||||
|
||||
if (readline_end_hook)
|
||||
(*readline_end_hook) ();
|
||||
if (deprecated_readline_end_hook)
|
||||
(*deprecated_readline_end_hook) ();
|
||||
/* tracepoints_changed () */
|
||||
}
|
||||
/* else just return */
|
||||
@@ -842,8 +842,8 @@ read_actions (struct tracepoint *t)
|
||||
gdb_flush (gdb_stdout);
|
||||
gdb_flush (gdb_stderr);
|
||||
|
||||
if (readline_hook && instream == NULL)
|
||||
line = (*readline_hook) (prompt);
|
||||
if (deprecated_readline_hook && instream == NULL)
|
||||
line = (*deprecated_readline_hook) (prompt);
|
||||
else if (instream == stdin && ISATTY (instream))
|
||||
{
|
||||
line = gdb_readline_wrapper (prompt);
|
||||
@@ -1804,8 +1804,8 @@ trace_start_command (char *args, int from_tty)
|
||||
set_tracepoint_num (-1);
|
||||
set_traceframe_context (-1);
|
||||
trace_running_p = 1;
|
||||
if (trace_start_stop_hook)
|
||||
trace_start_stop_hook (1, from_tty);
|
||||
if (deprecated_trace_start_stop_hook)
|
||||
deprecated_trace_start_stop_hook (1, from_tty);
|
||||
|
||||
}
|
||||
else
|
||||
@@ -1823,8 +1823,8 @@ trace_stop_command (char *args, int from_tty)
|
||||
if (strcmp (target_buf, "OK"))
|
||||
error ("Bogus reply from target: %s", target_buf);
|
||||
trace_running_p = 0;
|
||||
if (trace_start_stop_hook)
|
||||
trace_start_stop_hook (0, from_tty);
|
||||
if (deprecated_trace_start_stop_hook)
|
||||
deprecated_trace_start_stop_hook (0, from_tty);
|
||||
}
|
||||
else
|
||||
error ("Trace can only be run on remote targets.");
|
||||
@@ -1985,8 +1985,8 @@ trace_find_command (char *args, int from_tty)
|
||||
|
||||
if (target_is_remote ())
|
||||
{
|
||||
if (trace_find_hook)
|
||||
trace_find_hook (args, from_tty);
|
||||
if (deprecated_trace_find_hook)
|
||||
deprecated_trace_find_hook (args, from_tty);
|
||||
|
||||
if (args == 0 || *args == 0)
|
||||
{ /* TFIND with no args means find NEXT trace frame. */
|
||||
|
||||
Reference in New Issue
Block a user