From f17aed8ba33ad1b7ae7b3ffd8a87f86f81cef494 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Wed, 8 Mar 1995 01:18:08 +0000 Subject: * monitor.c (monitor_load): Set PC to start address when done loading. * array-rom.c monitor.h rom68k-rom.c: Clean up target_ops. Remove ref to monitor_create_inferior. --- gdb/monitor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/monitor.c') diff --git a/gdb/monitor.c b/gdb/monitor.c index 42d23da..4ac3485 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -1083,6 +1083,10 @@ monitor_load_srec (args, protocol) putchar_unfiltered ('\n'); expect_prompt (NULL, 0); + +/* Finally, make the PC point at the start address */ + + write_register (PC_REGNUM, bfd_get_start_address (abfd)); } /* Get an ACK or a NAK from the target. returns 1 (true) or 0 (false) -- cgit v1.1