aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.h
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2000-11-10 19:27:45 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2000-11-10 19:27:45 +0000
commit5fbbeb2988b75ffc72f8bf77dc0c4461ba65cefd (patch)
tree2bac1b4d3cfc6a8ba7d5d7ec0cc61b5dde8e0f3d /gdb/inferior.h
parent67e0617e6e9fa493f665a30b4362c9a85cc0c653 (diff)
downloadfsf-binutils-gdb-5fbbeb2988b75ffc72f8bf77dc0c4461ba65cefd.zip
fsf-binutils-gdb-5fbbeb2988b75ffc72f8bf77dc0c4461ba65cefd.tar.gz
fsf-binutils-gdb-5fbbeb2988b75ffc72f8bf77dc0c4461ba65cefd.tar.bz2
* inferior.h (step_over_calls_kind): New enum to clarify values in
step_over_calls. * infcmd.c (step_over_calls): Change definition. (step_1): Use new enum values in relation to step_over_calls. (step_once): Ditto. (until_next_command): Ditto. * infrun.c (clear_proceed_status): Ditto. (handle_inferior_event): Ditto. * inferior.h (step_stop_if_no_debug): New variable. * infrun.c (step_stop_if_no_debug): Declare. (handle_inferior_event): Stop the step command if we entered a function without line info. (_initialize_infrun): New command 'set step-mode' to control the step command. * infcmd.c (step_once): Switch to stepi mode if there is no line info (and switching is enabled).
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r--gdb/inferior.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h
index 4c91e83..474d278 100644
--- a/gdb/inferior.h
+++ b/gdb/inferior.h
@@ -125,6 +125,11 @@ extern void clear_proceed_status (void);
extern void proceed (CORE_ADDR, enum target_signal, int);
+/* When set, stop the 'step' command if we enter a function which has
+ no line number information. The normal behavior is that we step
+ over such function. */
+extern int step_stop_if_no_debug;
+
extern void kill_inferior (void);
extern void generic_mourn_inferior (void);
@@ -335,7 +340,12 @@ extern CORE_ADDR step_sp;
/* 1 means step over all subroutine calls.
-1 means step over calls to undebuggable functions. */
-extern int step_over_calls;
+enum step_over_calls_kind
+ {
+ STEP_OVER_NONE,
+ STEP_OVER_ALL,
+ STEP_OVER_UNDEBUGGABLE,
+ } step_over_calls;
/* If stepping, nonzero means step count is > 1
so don't print frame next time inferior stops