* solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:26:50 +0000 (22:26 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Fri, 15 Jun 2007 22:26:50 +0000 (22:26 +0000)
instead of write_register (PC_REGNUM, ...).

gdb/ChangeLog
gdb/solib-sunos.c

index 3690ec9d567a03671a7257c72893775841b12314..766e969299279f1a269584ba63b2dc317d06dadd 100644 (file)
@@ -1,3 +1,9 @@
+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
index 0717607d6590d961c5b705b7281538ddb34b72eb..ef6e41174eb1bdab16c47dcccc08beb252a81122 100644 (file)
@@ -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 ())