diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-05-05 13:08:59 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-05-05 13:08:59 +0000 |
commit | 53b83fd0f6ae7abf5d804c785a984ada5e6dd9bc (patch) | |
tree | d9f73b4c82a3a6c4ac6bfb15ebcf338bbe3f5ab8 /gdb | |
parent | 6a3be2eed8ad4c901d4a6edb683148f3188dec09 (diff) | |
download | gdb-53b83fd0f6ae7abf5d804c785a984ada5e6dd9bc.tar.gz |
* fork-child.c (startup_inferior): Move setting stop_pc ...
* infcmd.c (post_create_inferior): ... to here.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/fork-child.c | 2 | ||||
-rw-r--r-- | gdb/infcmd.c | 3 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a42483fa27b..e5779080406 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-05-05 Ulrich Weigand <uweigand@de.ibm.com> + + * fork-child.c (startup_inferior): Move setting stop_pc ... + * infcmd.c (post_create_inferior): ... to here. + 2009-05-04 Pedro Alves <pedro@codesourcery.com> * go32-nat.c (go32_stop): Delete. diff --git a/gdb/fork-child.c b/gdb/fork-child.c index a1726bd5439..a6bf2a959c5 100644 --- a/gdb/fork-child.c +++ b/gdb/fork-child.c @@ -530,8 +530,6 @@ startup_inferior (int ntraps) /* Mark all threads non-executing. */ set_executing (pid_to_ptid (-1), 0); - - stop_pc = read_pc (); } /* Implement the "unset exec-wrapper" command. */ diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 9cad3cb1865..a209848d2f6 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -391,6 +391,9 @@ post_create_inferior (struct target_ops *target, int from_tty) don't need to. */ target_find_description (); + /* Now that we know the register layout, retrieve current PC. */ + stop_pc = read_pc (); + /* If the solist is global across processes, there's no need to refetch it here. */ if (exec_bfd && !gdbarch_has_global_solist (target_gdbarch)) |