summaryrefslogtreecommitdiff
path: root/gdb/solib-irix.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-08-27 13:37:42 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-08-27 13:37:42 +0000
commit1124682f95d8484c84faf6a50abdcb2f689f3540 (patch)
treec6503d8ad0787c17104fe2c07ef951bbaf946b3a /gdb/solib-irix.c
parent9c9b609beb8d90c923fdf36c54d6496a10675f4a (diff)
downloadgdb-1124682f95d8484c84faf6a50abdcb2f689f3540.tar.gz
* procfs.c (dbx_link_bpt_addr): New static global variable.
(dbx_link_shadow_contents): New static global variable. (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events. (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint if we just hit it. (procfs_init_inferior): Enable syssgi() syscall trace if appropriate. Reset dbx_link_bpt_addr as the address of __dbx_link() may change from run to run. (procfs_create_inferior): Remove syssgi syscall-exit notifications after the inferior has been forked. (remove_dbx_link_breakpoint): New function. (dbx_link_addr): New function. (insert_dbx_link_bpt_in_file): New function. (insert_dbx_link_bpt_in_region): New function. (insert_dbx_link_breakpoint): New function. (proc_trace_syscalls_1): New function, extracted from proc_trace_syscalls. (proc_trace_syscalls): Replace extract code by call to proc_trace_syscalls_1. * solib-irix.c (disable_break): Remove stop_pc assertion, as it is no longer valid.
Diffstat (limited to 'gdb/solib-irix.c')
-rw-r--r--gdb/solib-irix.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/gdb/solib-irix.c b/gdb/solib-irix.c
index aaf8338bb25..5795ecaf0c1 100644
--- a/gdb/solib-irix.c
+++ b/gdb/solib-irix.c
@@ -324,15 +324,11 @@ disable_break (void)
status = 0;
}
- /* For the SVR4 version, we always know the breakpoint address. For the
- SunOS version we don't know it until the above code is executed.
- Grumble if we are stopped anywhere besides the breakpoint address. */
-
- if (stop_pc != breakpoint_addr)
- {
- warning
- ("stopped at unknown breakpoint while handling shared libraries");
- }
+ /* Note that it is possible that we have stopped at a location that
+ is different from the location where we inserted our breakpoint.
+ On mips-irix, we can actually land in __dbx_init(), so we should
+ not check the PC against our breakpoint address here. See procfs.c
+ for more details. */
return (status);
}