aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/solib-sunos.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3690ec9..766e969 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
+ * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
+ instead of write_register (PC_REGNUM, ...).
+
+
+2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
+
* solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
explaining why the PC adjustment code is necessary.
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index 0717607..ef6e411 100644
--- a/gdb/solib-sunos.c
+++ b/gdb/solib-sunos.c
@@ -786,7 +786,7 @@ sunos_solib_create_inferior_hook (void)
if (gdbarch_decr_pc_after_break (current_gdbarch))
{
stop_pc -= gdbarch_decr_pc_after_break (current_gdbarch);
- write_register (PC_REGNUM, stop_pc);
+ write_pc (stop_pc);
}
if (!disable_break ())