aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1995-01-23 08:11:30 +0000
committerSteve Chamberlain <sac@cygnus>1995-01-23 08:11:30 +0000
commit0c699ac1674fc104db57fe47357121e23c7ca86c (patch)
treea1dd2ac861e200295ea43d0aa89d0037faa30325
parent771d7a99ed66fb4b569c16d3fd753dc024427fc8 (diff)
downloadgdb-0c699ac1674fc104db57fe47357121e23c7ca86c.zip
gdb-0c699ac1674fc104db57fe47357121e23c7ca86c.tar.gz
gdb-0c699ac1674fc104db57fe47357121e23c7ca86c.tar.bz2
* remote-hms.c (hms_load): Delete.
(target_ops): Use hr_load_image.
-rw-r--r--gdb/ChangeLog13
-rw-r--r--gdb/remote-hms.c68
2 files changed, 14 insertions, 67 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fef8d2d..9ec5e05 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,16 @@
+Mon Jan 23 00:06:57 1995 Steve Chamberlain <sac@splat>
+
+ * remote-hms.c (hms_load): Delete.
+ (target_ops): Use hr_load_image.
+
+ * remote-e7000.c, remote-z8k.c, remote-nindy.c (target_ops):
+ Define memory_insert/remove_breakpoint.
+ * xm-go32.h: Remove redundant SIGs.
+
+Thu Jan 19 20:26:58 1995 Steve Chamberlain <sac@splat>
+
+ * ser-go32.c: Rewritten by nigel@algor.co.uk.
+
Fri Jan 20 15:23:55 1995 Per Bothner <bothner@kalessin.cygnus.com>
* expression.h (OP_LABELED): New operator, for Chill
diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c
index bc114c4..d3a51c1 100644
--- a/gdb/remote-hms.c
+++ b/gdb/remote-hms.c
@@ -425,72 +425,6 @@ hms_kill (arg, from_tty)
}
-/*
- * Download a file specified in 'args', to the hms.
- */
-static void
-hms_load (args, fromtty)
- char *args;
- int fromtty;
-{
- bfd *abfd;
- asection *s;
- int n;
- char buffer[1024];
-
- check_open ();
-
- dcache_flush ();
- inferior_pid = 0;
- abfd = bfd_openr (args, gnutarget);
- if (!abfd)
- {
- printf_filtered ("Unable to open file %s\n", args);
- return;
- }
-
- if (bfd_check_format (abfd, bfd_object) == 0)
- {
- printf_filtered ("File is not an object file\n");
- return;
- }
-
- s = abfd->sections;
- while (s != (asection *) NULL)
- {
- if (s->flags & SEC_LOAD)
- {
- int i;
-
-#define DELTA 1024
- char *buffer = xmalloc (DELTA);
-
- printf_filtered ("%s\t: 0x%4x .. 0x%4x ", s->name, s->vma, s->vma + s->_raw_size);
- for (i = 0; i < s->_raw_size; i += DELTA)
- {
- int delta = DELTA;
-
- if (delta > s->_raw_size - i)
- delta = s->_raw_size - i;
-
- bfd_get_section_contents (abfd, s, buffer, i, delta);
- hms_write_inferior_memory (s->vma + i, buffer, delta);
- printf_filtered ("*");
- gdb_flush (gdb_stdout);
- }
- printf_filtered ("\n");
- free (buffer);
- }
- s = s->next;
- }
- sprintf (buffer, "r PC=%x", abfd->start_address);
- hms_write_cr (buffer);
- expect_prompt ();
- /* Turn off all breakpoints */
- hms_write_cr ("b -");
- expect_prompt ();
-}
-
/* This is called not only when we first attach, but also when the
user types "run" after having attached. */
void
@@ -1515,7 +1449,7 @@ by a serial line.",
hms_insert_breakpoint, hms_remove_breakpoint, /* Breakpoints */
0, 0, 0, 0, 0, /* Terminal handling */
hms_kill, /* FIXME, kill */
- hms_load,
+ hr_load_image,
0, /* lookup_symbol */
hms_create_inferior, /* create_inferior */
hms_mourn, /* mourn_inferior FIXME */