aboutsummaryrefslogtreecommitdiff
path: root/gdb/monitor.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-03-08 01:18:08 +0000
committerStu Grossman <grossman@cygnus>1995-03-08 01:18:08 +0000
commitf17aed8ba33ad1b7ae7b3ffd8a87f86f81cef494 (patch)
tree75573eff1114ff3503ce99caecdf118118576470 /gdb/monitor.c
parent8f07823450a59b484c348b048dc74e1d81242062 (diff)
downloadgdb-f17aed8ba33ad1b7ae7b3ffd8a87f86f81cef494.zip
gdb-f17aed8ba33ad1b7ae7b3ffd8a87f86f81cef494.tar.gz
gdb-f17aed8ba33ad1b7ae7b3ffd8a87f86f81cef494.tar.bz2
* 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.
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)