]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: symmisc.c: remove std_{in,out,err}
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 5 Feb 2021 18:06:33 +0000 (13:06 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 5 Feb 2021 18:06:33 +0000 (13:06 -0500)
These are likely not very useful, remove them.

gdb/ChangeLog:

* symmisc.c (std_in, std_out, std_err): Remove.
(_initialize_symmisc): Don't set std_in, std_out and std_err.

Change-Id: I140bfffd7fb655d39c32333bb53924b91b1eb13c

gdb/ChangeLog
gdb/symmisc.c

index 1f5840e57017b53de59c7dfd535e27f604ce0775..78cd0590e518a18a5bbbdcfa7efe4d2d0fead1eb 100644 (file)
@@ -1,3 +1,8 @@
+2021-02-05  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * symmisc.c (std_in, std_out, std_err): Remove.
+       (_initialize_symmisc): Don't set std_in, std_out and std_err.
+
 2021-02-05  Tom de Vries  <tdevries@suse.de>
 
        PR breakpoints/27330
index a8f8856f721891e2a8c96f71a206fe23151a114b..fe353bc0ff78019ced9365503584b6072f73cc6a 100644 (file)
 #include "psymtab.h"
 #include "psympriv.h"
 
-/* Unfortunately for debugging, stderr is usually a macro.  This is painful
-   when calling functions that take FILE *'s from the debugger.
-   So we make a variable which has the same value and which is accessible when
-   debugging GDB with itself.  Because stdin et al need not be constants,
-   we initialize them in the _initialize_symmisc function at the bottom
-   of the file.  */
-static FILE *std_in;
-static FILE *std_out;
-static FILE *std_err;
-
 /* Prototypes for local functions */
 
 static int block_depth (const struct block *);
@@ -1102,10 +1092,6 @@ void _initialize_symmisc ();
 void
 _initialize_symmisc ()
 {
-  std_in = stdin;
-  std_out = stdout;
-  std_err = stderr;
-
   add_cmd ("symbols", class_maintenance, maintenance_print_symbols, _("\
 Print dump of current symbol definitions.\n\
 Usage: mt print symbols [-pc ADDRESS] [--] [OUTFILE]\n\