diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-15 22:10:48 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-15 22:10:48 +0000 |
commit | b4397864d4917119736fe072eef0c5a2954a6857 (patch) | |
tree | 2416527482de610e179612bf09e88a845417b6d8 /gdb/solib-sunos.c | |
parent | 8ed86d01ca8b14c14f37429df136130158066f8a (diff) | |
download | gdb-b4397864d4917119736fe072eef0c5a2954a6857.zip gdb-b4397864d4917119736fe072eef0c5a2954a6857.tar.gz gdb-b4397864d4917119736fe072eef0c5a2954a6857.tar.bz2 |
* solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
explaining why the PC adjustment code is necessary.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r-- | gdb/solib-sunos.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index 6f5c589..0717607 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)) { |