diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-07-02 21:29:28 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-07-02 21:29:28 +0000 |
commit | b0f4b84b5c44685c7880e9e3e013314590662a17 (patch) | |
tree | 0071037729bf478008a8a49a212f72c8b6e18caf /gdb/inferior.h | |
parent | 9bbf65bb0848c4ea2887cdd4ca39561249ef11f5 (diff) | |
download | gdb-b0f4b84b5c44685c7880e9e3e013314590662a17.zip gdb-b0f4b84b5c44685c7880e9e3e013314590662a17.tar.gz gdb-b0f4b84b5c44685c7880e9e3e013314590662a17.tar.bz2 |
* infrun.c (inferior_ignoring_startup_exec_events): Delete.
(start_remote): Use STOP_QUIETLY_REMOTE.
(handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
support on a SOLIB_ADD definition. Update breakpoints_inserted.
Update to match shared library event breakpoint support. Only
resume if appropriate. Handle STOP_QUIETLY_REMOTE.
(normal_stop): Handle TARGET_WAITKIND_LOADED.
* fork-child.c (startup_inferior): Do not set
inferior_ignoring_startup_exec_events
* inferior.h (inferior_ignoring_startup_exec_events): Delete
declaration.
(enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE.
* config/gdbserver.exp (gdb_reconnect): New.
* gdb.base/so-disc-shr.c, gdb.base/solib-disc.c,
gdb.base/solib-disc.exp: New files.
* lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending
remote debugging".
(gdb_compile): Add shlib_load flag.
* lib/gdbserver-support.exp (gdbserver_run): Save the protocol and
port.
(gdbserver_reconnect): New.
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index a18943e..39d3134 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -124,20 +124,7 @@ extern int target_executing; redisplay the prompt until the execution is actually over. */ extern int sync_execution; -/* This is only valid when inferior_ptid is non-zero. - - If this is 0, then exec events should be noticed and responded to - by the debugger (i.e., be reported to the user). - - If this is > 0, then that many subsequent exec events should be - ignored (i.e., not be reported to the user). - */ -extern int inferior_ignoring_startup_exec_events; - -/* This is only valid when inferior_ignoring_startup_exec_events is - zero. - - Some targets (stupidly) report more than one exec event per actual +/* Some targets (stupidly) report more than one exec event per actual call to an event() system call. If only the last such exec event need actually be noticed and responded to by the debugger (i.e., be reported to the user), then this is the number of "leading" @@ -351,10 +338,12 @@ extern enum step_over_calls_kind step_over_calls; extern int step_multi; -/* Nonzero means expecting a trap and caller will handle it - themselves. It is used when running in the shell before the child - program has been exec'd; and when running some kinds of remote - stuff (FIXME?). */ +/* Anything but NO_STOP_QUIETLY means we expect a trap and the caller + will handle it themselves. STOP_QUIETLY is used when running in + the shell before the child program has been exec'd and when running + through shared library loading. STOP_QUIETLY_REMOTE is used when + setting up a remote connection; it is like STOP_QUIETLY_NO_SIGSTOP + except that there is no need to hide a signal. */ /* It is also used after attach, due to attaching to a process. This is a bit trickier. When doing an attach, the kernel stops the @@ -378,6 +367,7 @@ enum stop_kind { NO_STOP_QUIETLY = 0, STOP_QUIETLY, + STOP_QUIETLY_REMOTE, STOP_QUIETLY_NO_SIGSTOP }; |