gdb/
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index db2232d4668e6a22de4e8400f7cf283e940b2bca..a803bcbbb4570721d3049e6de3278ba5bff4b61b 100644 (file)
@@ -580,8 +580,9 @@ run_command_1 (char *args, int from_tty, int tbreak_at_main)
      has done its thing; now we are setting up the running program.  */
   post_create_inferior (&current_target, 0);
 
-  /* Start the target running.  */
-  proceed ((CORE_ADDR) -1, TARGET_SIGNAL_0, 0);
+  /* Start the target running.  Do not use -1 continuation as it would skip
+     breakpoint right at the entry point.  */
+  proceed (regcache_read_pc (get_current_regcache ()), TARGET_SIGNAL_0, 0);
 
   /* Since there was no error, there's no need to finish the thread
      states here.  */
This page took 0.024736 seconds and 4 git commands to generate.