Browse Source

Add gdb_get_stdout and gdb_get_stderr function to gdb_get_stdin.c source

git-svn-id: trunk@35559 -
pierre 8 years ago
parent
commit
659e372ee6
1 changed files with 13 additions and 0 deletions
  1. 13 0
      packages/gdbint/gen-gdblib-inc.sh

+ 13 - 0
packages/gdbint/gen-gdblib-inc.sh

@@ -207,12 +207,25 @@ cat > gdb_get_stdin.c <<EOF
 /* Missing prototypes.  */
 
 FILE * gdb_get_stdin (void);
+FILE * gdb_get_stdout (void);
+FILE * gdb_get_stderr (void);
 
 FILE *
 gdb_get_stdin (void)
 {
   return stdin;
 }
+
+FILE *
+gdb_get_stdout (void)
+{
+  return stdout;
+}
+FILE *
+gdb_get_stderr (void)
+{
+  return stderr;
+}
 EOF
 
 echo "Trying to compile gdb_get_stdin.c file"