]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* remote-hms.c (hms_load): Delete.
authorSteve Chamberlain <sac@cygnus>
Mon, 23 Jan 1995 08:11:30 +0000 (08:11 +0000)
committerSteve Chamberlain <sac@cygnus>
Mon, 23 Jan 1995 08:11:30 +0000 (08:11 +0000)
(target_ops): Use hr_load_image.

gdb/ChangeLog
gdb/remote-hms.c

index fef8d2d546d38b63f686edc3c9e16c2eafbbc480..9ec5e057107bc2144806cf8457295898eef57eed 100644 (file)
@@ -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
index bc114c4ef396421693060348564072efbe99ce27..d3a51c1c387a3d9c4330611e510eb72ce97b9806 100644 (file)
@@ -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 */