aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-04-04 22:12:14 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-04-04 22:12:14 +0000
commit74d1f91eb19fd48d51664b33769c8c0d4f8e4c38 (patch)
tree290ea94c0bb699a06b81bcd8d250761670bfd921 /gdb/infcmd.c
parent91d91ceba446057965ee71a3e7e48a1b4aed6af0 (diff)
downloadgdb-74d1f91eb19fd48d51664b33769c8c0d4f8e4c38.zip
gdb-74d1f91eb19fd48d51664b33769c8c0d4f8e4c38.tar.gz
gdb-74d1f91eb19fd48d51664b33769c8c0d4f8e4c38.tar.bz2
gdb/
* infcmd.c (run_command_1): Call proceed with regcache_read_pc address. * config/djgpp/fnchange.lst: Add translation for break-entry.exp. gdb/testsuite/ * gdb.base/break-entry.exp: New.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index db2232d..a803bcb 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -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. */