diff options
author | Pedro Alves <palves@redhat.com> | 2008-10-16 14:03:18 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-10-16 14:03:18 +0000 |
commit | 5c952c9bcba64067d4108613aecab69f432677c0 (patch) | |
tree | 46da54ad0ee0da24d37e007684a43e11090e09ee | |
parent | a08702d64763b3c67aafc3f10b0e077187a8e551 (diff) | |
download | gdb-5c952c9bcba64067d4108613aecab69f432677c0.zip gdb-5c952c9bcba64067d4108613aecab69f432677c0.tar.gz gdb-5c952c9bcba64067d4108613aecab69f432677c0.tar.bz2 |
* remote.c (push_remote_target): Delete.
* target.h (push_remote_target): Delete declaration.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 17 | ||||
-rw-r--r-- | gdb/target.h | 3 |
3 files changed, 5 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 965dd0b..94b3178 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-10-16 Pedro Alves <pedro@codesourcery.com> + + * remote.c (push_remote_target): Delete. + * target.h (push_remote_target): Delete declaration. + 2008-10-15 Pedro Alves <pedro@codesourcery.com> * remote.c (remote_close): Unregister remote_desc from the event diff --git a/gdb/remote.c b/gdb/remote.c index 5d52cd7..9a473f2 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5995,23 +5995,6 @@ remote_remove_hw_breakpoint (struct bp_target_info *bp_tgt) _("remote_remove_hw_breakpoint: reached end of function")); } -/* Some targets are only capable of doing downloads, and afterwards - they switch to the remote serial protocol. This function provides - a clean way to get from the download target to the remote target. - It's basically just a wrapper so that we don't have to expose any - of the internal workings of remote.c. - - Prior to calling this routine, you should shutdown the current - target code, else you will get the "A program is being debugged - already..." message. Usually a call to pop_target() suffices. */ - -void -push_remote_target (char *name, int from_tty) -{ - printf_filtered (_("Switching to remote protocol\n")); - remote_open (name, from_tty); -} - /* Table used by the crc32 function to calcuate the checksum. */ static unsigned long crc32_table[256] = diff --git a/gdb/target.h b/gdb/target.h index 067c031..e3537c4 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1301,9 +1301,6 @@ extern int default_target_signal_to_host (struct gdbarch *, /* Convert from a number used in a GDB command to an enum target_signal. */ extern enum target_signal target_signal_from_command (int); -/* Any target can call this to switch to remote protocol (in remote.c). */ -extern void push_remote_target (char *name, int from_tty); - /* Set the show memory breakpoints mode to show, and installs a cleanup to restore it back to the current value. */ extern struct cleanup *make_show_memory_breakpoints_cleanup (int show); |