aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r--gdb/monitor.c4
1 files changed, 4 insertions, 0 deletions
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)