aboutsummaryrefslogtreecommitdiff
path: root/gdb/symmisc.c
diff options
context:
space:
mode:
authorgdb-2.8 <gdb@fsf.org>1988-09-03 08:00:00 +0100
committerPedro Alves <palves@redhat.com>2012-06-03 15:36:31 +0100
commit3bf57d210832b28e9361990830eb722a619f031b (patch)
treeba506d293bde0f6500d0cee3e643ebf8890d9cf7 /gdb/symmisc.c
parent7c75bab3d3ef344a6a0b13b9ab59ecd5855aceb5 (diff)
downloadgdb-3bf57d210832b28e9361990830eb722a619f031b.zip
gdb-3bf57d210832b28e9361990830eb722a619f031b.tar.gz
gdb-3bf57d210832b28e9361990830eb722a619f031b.tar.bz2
gdb-2.8
Diffstat (limited to 'gdb/symmisc.c')
-rw-r--r--gdb/symmisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/symmisc.c b/gdb/symmisc.c
index 5dcb886..cb631cb 100644
--- a/gdb/symmisc.c
+++ b/gdb/symmisc.c
@@ -397,6 +397,8 @@ print_symtabs (filename)
if (filename == 0)
error_no_arg ("file to write symbol data in");
outfile = fopen (filename, "w");
+ if (outfile == 0)
+ perror_with_name (filename);
cleanups = make_cleanup (fclose, outfile);
immediate_quit++;