diff options
author | Mark Mitchell <mark@codesourcery.com> | 2005-06-13 18:39:11 +0000 |
---|---|---|
committer | Mark Mitchell <mark@codesourcery.com> | 2005-06-13 18:39:11 +0000 |
commit | 7ca0dd74c3227b06633ee8c750210ea80dc2d996 (patch) | |
tree | 6250f8f240745fdf42a66ddd7ba3a975cbaa2bb3 /gdb/exec.c | |
parent | 8de98deff59a83cf3013557a99aabf50e7e5d8f0 (diff) | |
download | gdb-7ca0dd74c3227b06633ee8c750210ea80dc2d996.tar.gz |
* corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr.
* exec.c (exec_file_attach): Likewise.
* solib-frv.c (enable_break2): Likewise.
* solib-svr4.c (enable_break): Likewise.
* solib.c (solib_map_sections): Likewise.
* symfile.c (symfile_bfd_open): Likewise.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 60e3b36ae3c..69d10bf98ef 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -214,7 +214,9 @@ exec_file_attach (char *filename, int from_tty) #endif if (scratch_chan < 0) perror_with_name (filename); - exec_bfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan); + exec_bfd = bfd_fopen (scratch_pathname, gnutarget, + write_files ? FOPEN_RUB : FOPEN_RB, + scratch_chan); if (!exec_bfd) error (_("\"%s\": could not open as an executable file: %s"), |