From 01a2329eebbeb7e7188d23470434be2c32fbc938 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 11 Oct 2007 18:40:28 +0000 Subject: [PATCH] 2007-10-11 Jesper Nilsson * callback.c (cb_is_stdin): Add. * syscall.c (cb_syscall): Test for stdin, not just fd 0. 2007-10-11 Jesper Nilsson * callback.h (cb_is_stdin): Add prototype. --- include/gdb/ChangeLog | 4 ++++ include/gdb/callback.h | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/gdb/ChangeLog b/include/gdb/ChangeLog index e3a3f51c7..70266e2cc 100644 --- a/include/gdb/ChangeLog +++ b/include/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-10-11 Jesper Nilsson + + * callback.h (cb_is_stdin): Add prototype. + 2007-08-23 Joel Brobecker Switch the license of all .h files to GPLv3. diff --git a/include/gdb/callback.h b/include/gdb/callback.h index f1e7d24b8..2245c87dc 100644 --- a/include/gdb/callback.h +++ b/include/gdb/callback.h @@ -315,6 +315,9 @@ 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)); +/* Test if the fd is stdin. */ +int cb_is_stdin PARAMS ((host_callback *, int)); + /* Perform a system call. */ CB_RC cb_syscall PARAMS ((host_callback *, CB_SYSCALL *)); -- 2.11.4.GIT