Update copyright notices to add year 2010.
[deliverable/binutils-gdb.git] / include / gdb / callback.h
index f1e7d24b846c61c7889647986a5f4594b54a375e..114e2f32564d76ede5f90de8e219d1e1d3ecad02 100644 (file)
@@ -1,5 +1,5 @@
 /* Remote target system call callback support.
-   Copyright 1997, 2007 Free Software Foundation, Inc.
+   Copyright 1997, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
    This file is part of GDB.
@@ -124,7 +124,11 @@ struct host_callback_struct
   /* Print an error message and "exit".
      In the case of gdb "exiting" means doing a longjmp back to the main
      command loop.  */
-  void (*error) PARAMS ((host_callback *, const char *, ...));
+  void (*error) PARAMS ((host_callback *, const char *, ...))
+#ifdef __GNUC__
+    __attribute__ ((__noreturn__))
+#endif
+    ;
 
   int last_errno;              /* host format */
 
@@ -315,6 +319,11 @@ int cb_host_to_target_stat PARAMS ((host_callback *, const struct stat *, PTR));
 /* Translate a value to target endian.  */
 void cb_store_target_endian PARAMS ((host_callback *, char *, int, long));
 
+/* Tests for special fds.  */
+int cb_is_stdin PARAMS ((host_callback *, int));
+int cb_is_stdout PARAMS ((host_callback *, int));
+int cb_is_stderr PARAMS ((host_callback *, int));
+
 /* Perform a system call.  */
 CB_RC cb_syscall PARAMS ((host_callback *, CB_SYSCALL *));
 
This page took 0.023004 seconds and 4 git commands to generate.