summaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2007-07-02 21:29:28 +0000
committerDaniel Jacobowitz <dan@debian.org>2007-07-02 21:29:28 +0000
commit6822b2b997226699ac17670891a9af442ec0a9c8 (patch)
tree9f4ca67af5d8694a730a8499f5760cd030a86926 /gdb/inferior.h
parentab09e29456a2e52e5033dd003280963e2eac4e79 (diff)
downloadgdb-6822b2b997226699ac17670891a9af442ec0a9c8.tar.gz
* 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.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index a18943eae7f..39d31340922 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
};