* ocd.c (ocd_open): If we fail ocd_start_remote, make sure we
[deliverable/binutils-gdb.git] / gdb / top.h
index 6ae28a25da43fb3c8d658caef6a22fa5d640cb50..c85b32389882dda8b1fdbe41826e6080bb62102c 100644 (file)
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -16,7 +16,7 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /* From top.c.  */
 extern char *line;
@@ -29,18 +29,30 @@ extern char gdbinit[];
 
 /* Generally one should use catch_errors rather than manipulating these
    directly.  The exception is main().  */
-extern jmp_buf error_return;
-extern jmp_buf quit_return;
+#if defined(HAVE_SIGSETJMP)
+#define SIGJMP_BUF             sigjmp_buf
+#define SIGSETJMP(buf)         sigsetjmp(buf, 1)
+#define SIGLONGJMP(buf,val)    siglongjmp(buf,val)
+#else
+#define SIGJMP_BUF             jmp_buf
+#define SIGSETJMP(buf)         setjmp(buf)
+#define SIGLONGJMP(buf,val)    longjmp(buf,val)
+#endif
+
+extern SIGJMP_BUF error_return;
+extern SIGJMP_BUF quit_return;
 
 extern void print_gdb_version PARAMS ((GDB_FILE *));
-extern void print_gnu_advertisement PARAMS ((void));
 
 extern void source_command PARAMS ((char *, int));
 extern void cd_command PARAMS ((char *, int));
 extern void read_command_file PARAMS ((FILE *));
 extern void init_history PARAMS ((void));
 extern void command_loop PARAMS ((void));
+extern int quit_confirm PARAMS ((void));
+extern void quit_force PARAMS ((char *, int));
 extern void quit_command PARAMS ((char *, int));
+extern char *get_prompt PARAMS((void));
 
 /* From random places.  */
 extern int mapped_symbol_files;
This page took 0.025008 seconds and 4 git commands to generate.