From: David Edelsohn Date: Wed, 11 Dec 1996 20:14:11 +0000 (+0000) Subject: * monitor.c (monitor_load): Add support for load address argument. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb28c55a5abaa7f5404f6aa7d218ce99787f81d3;p=binutils-gdb.git * monitor.c (monitor_load): Add support for load address argument. * dsrec.c: #include . (load_srec): New argument load_offset. Print download stats. * srec.h (load_srec): Update prototype. * sh3-rom.c (sh3_load): Update call to load_srec. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ed84620b24a..5563aeb1e46 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +Wed Dec 11 11:15:08 1996 Doug Evans + + * monitor.c (monitor_load): Add support for load address argument. + * dsrec.c: #include . + (load_srec): New argument load_offset. Print download stats. + * srec.h (load_srec): Update prototype. + * sh3-rom.c (sh3_load): Update call to load_srec. + Mon Dec 9 17:34:05 1996 Geoffrey Noer * config/mn10300/tm-mn10300.h: more small register fixes diff --git a/gdb/sh3-rom.c b/gdb/sh3-rom.c index 7b2718a1b71..92992607199 100644 --- a/gdb/sh3-rom.c +++ b/gdb/sh3-rom.c @@ -124,7 +124,7 @@ sh3_load (desc, file, hashmark) if (parallel_in_use) { monitor_printf("pl;s\r"); - load_srec (parallel, file, 80, SREC_ALL, hashmark, NULL); + load_srec (parallel, file, 0, 80, SREC_ALL, hashmark, NULL); monitor_expect_prompt (NULL, 0); } else @@ -134,7 +134,7 @@ sh3_load (desc, file, hashmark) SERIAL_WRITE (desc, "\006", 1); /* Send ACK */ monitor_expect ("LO x\r", NULL, 0); /* Look for filename */ - load_srec (desc, file, 80, SREC_ALL, hashmark, NULL); + load_srec (desc, file, 0, 80, SREC_ALL, hashmark, NULL); monitor_expect ("\005", NULL, 0); /* Look for ENQ */ SERIAL_WRITE (desc, "\006", 1); /* Send ACK */ diff --git a/gdb/srec.h b/gdb/srec.h index eb69360571d..8253e030956 100644 --- a/gdb/srec.h +++ b/gdb/srec.h @@ -1,5 +1,5 @@ /* S-record download support for GDB, the GNU debugger. - Copyright 1995 Free Software Foundation, Inc. + Copyright 1995, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -17,8 +17,9 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -void load_srec PARAMS ((serial_t desc, const char *file, int maxrecsize, - int flags, int hashmark, int (*waitack)(void))); +void load_srec PARAMS ((serial_t desc, const char *file, bfd_vma load_offset, + int maxrecsize, int flags, int hashmark, + int (*waitack)(void))); /* S-record capability flags */