From 0c699ac1674fc104db57fe47357121e23c7ca86c Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Mon, 23 Jan 1995 08:11:30 +0000 Subject: [PATCH] * remote-hms.c (hms_load): Delete. (target_ops): Use hr_load_image. --- gdb/ChangeLog | 13 +++++++++ gdb/remote-hms.c | 68 +----------------------------------------------- 2 files changed, 14 insertions(+), 67 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fef8d2d546d..9ec5e057107 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +Mon Jan 23 00:06:57 1995 Steve Chamberlain + + * 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 + + * ser-go32.c: Rewritten by nigel@algor.co.uk. + Fri Jan 20 15:23:55 1995 Per Bothner * expression.h (OP_LABELED): New operator, for Chill diff --git a/gdb/remote-hms.c b/gdb/remote-hms.c index bc114c4ef39..d3a51c1c387 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 */ -- 2.30.2