gdb/gdb-f18-open-emptyname.patch

21 lines
616 B
Diff

gdb ""
SEGV
From archer.patch probably from archer-tromey-dwz-multifile-rebase .
--- gdb-7.5.1/gdb/exec.c-orig 2013-04-12 16:58:46.426785095 +0200
+++ gdb-7.5.1/gdb/exec.c 2013-04-12 17:10:18.566927513 +0200
@@ -226,11 +226,11 @@ exec_file_attach (char *filename, int fr
&scratch_pathname);
}
#endif
+ if (scratch_chan < 0)
+ perror_with_name (filename);
cleanups = make_cleanup (xfree, scratch_pathname);
- if (scratch_chan < 0)
- perror_with_name (filename);
exec_bfd = gdb_bfd_fopen (scratch_pathname, gnutarget,
write_files ? FOPEN_RUB : FOPEN_RB,
scratch_chan);