diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-23 09:22:56 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-23 11:26:14 -0400 |
commit | 7d21eff9442d75c2b1d4beec1120115bf252dfdf (patch) | |
tree | 815188f7ddb2d647674e2b278fd0d457b18005ae /gdb/defs.h | |
parent | eb97e68430f51fc120db4cde03abdffb0303f8ae (diff) | |
download | binutils-7d21eff9442d75c2b1d4beec1120115bf252dfdf.zip binutils-7d21eff9442d75c2b1d4beec1120115bf252dfdf.tar.gz binutils-7d21eff9442d75c2b1d4beec1120115bf252dfdf.tar.bz2 |
gdb: move declarations of check_quit_flag and set_quit_flag to extension.h
Move them out of defs.h, to extension.h, since the implementations are
in extension.c.
Change-Id: Ie7321468bd7fecc684d70b09f72c3ee8ac75d8f4
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 19 |
1 files changed, 0 insertions, 19 deletions
@@ -94,25 +94,6 @@ extern std::string python_libdir; /* * Search path for separate debug files. */ extern std::string debug_file_directory; -/* GDB's SIGINT handler basically sets a flag; code that might take a - long time before it gets back to the event loop, and which ought to - be interruptible, checks this flag using the QUIT macro, which, if - GDB has the terminal, throws a quit exception. - - In addition to setting a flag, the SIGINT handler also marks a - select/poll-able file descriptor as read-ready. That is used by - interruptible_select in order to support interrupting blocking I/O - in a race-free manner. - - These functions use the extension_language_ops API to allow extension - language(s) and GDB SIGINT handling to coexist seamlessly. */ - -/* * Evaluate to non-zero if the quit flag is set, zero otherwise. This - will clear the quit flag as a side effect. */ -extern int check_quit_flag (void); -/* * Set the quit flag. */ -extern void set_quit_flag (void); - /* The current quit handler (and its type). This is called from the QUIT macro. See default_quit_handler below for default behavior. Parts of GDB temporarily override this to e.g., completely suppress |