summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:10:48 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-15 22:10:48 +0000
commitfba70ac9cef71f74051f529d309f8c77c74ccee2 (patch)
tree37efa10682bc8bfda04c47ce41083fc256194392
parent1c55bf2e873b8ac371e144092c3b8734947fa8a4 (diff)
downloadgdb-fba70ac9cef71f74051f529d309f8c77c74ccee2.tar.gz
* solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
explaining why the PC adjustment code is necessary.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/solib-sunos.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a9e32cf6148..3690ec9d567 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2007-06-15 Vladimir Prus <vladimir@codesourcery.com>
* m68k-tdep.h (enum m68k_flavour): New.
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index 6f5c5894a50..0717607d659 100644
--- a/gdb/solib-sunos.c
+++ b/gdb/solib-sunos.c
@@ -775,7 +775,13 @@ sunos_solib_create_inferior_hook (void)
/* We are now either at the "mapping complete" breakpoint (or somewhere
else, a condition we aren't prepared to deal with anyway), so adjust
the PC as necessary after a breakpoint, disable the breakpoint, and
- add any shared libraries that were mapped in. */
+ add any shared libraries that were mapped in.
+
+ Note that adjust_pc_after_break did not perform any PC adjustment,
+ as the breakpoint the inferior just hit was not inserted by GDB,
+ but by the dynamic loader itself, and is therefore not found on
+ the GDB software break point list. Thus we have to adjust the
+ PC here. */
if (gdbarch_decr_pc_after_break (current_gdbarch))
{