diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-05-05 13:09:00 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-05-05 13:09:00 +0000 |
commit | f698437e4b9dd8235f06d0cd46382ec506c3e0be (patch) | |
tree | d6eaeec4970bbcaed8fdf07ede205102248e9f66 /gdb/infcmd.c | |
parent | 267bf99505c8522ff9e10ec56c195deb533da338 (diff) | |
download | gdb-f698437e4b9dd8235f06d0cd46382ec506c3e0be.zip gdb-f698437e4b9dd8235f06d0cd46382ec506c3e0be.tar.gz gdb-f698437e4b9dd8235f06d0cd46382ec506c3e0be.tar.bz2 |
* fork-child.c (startup_inferior): Move setting stop_pc ...
* infcmd.c (post_create_inferior): ... to here.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 9cad3cb..a209848 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)) |