GNU Binutils with patches for OS216
Revisión | ab74cba4ae0bd31e885cb197de43ae5dc54b5e4a (tree) |
---|---|
Tiempo | 2005-06-14 03:43:57 |
Autor | Mark Mitchell <mark@code...> |
Commiter | Mark Mitchell |
* 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.
@@ -1,3 +1,12 @@ | ||
1 | +2005-06-13 Mark Mitchell <mark@codesourcery.com> | |
2 | + | |
3 | + * corelow.c (core_open): Use bfd_fopen, not bfd_fdopenr. | |
4 | + * exec.c (exec_file_attach): Likewise. | |
5 | + * solib-frv.c (enable_break2): Likewise. | |
6 | + * solib-svr4.c (enable_break): Likewise. | |
7 | + * solib.c (solib_map_sections): Likewise. | |
8 | + * symfile.c (symfile_bfd_open): Likewise. | |
9 | + | |
1 | 10 | 2005-03-25 Mark Kettenis <kettenis@gnu.org> |
2 | 11 | |
3 | 12 | * dwarf2-frame.h: Update copyrigh year. |
@@ -315,7 +315,9 @@ core_open (char *filename, int from_tty) | ||
315 | 315 | if (scratch_chan < 0) |
316 | 316 | perror_with_name (filename); |
317 | 317 | |
318 | - temp_bfd = bfd_fdopenr (filename, gnutarget, scratch_chan); | |
318 | + temp_bfd = bfd_fopen (filename, gnutarget, | |
319 | + write_files ? FOPEN_RUB : FOPEN_RB, | |
320 | + scratch_chan); | |
319 | 321 | if (temp_bfd == NULL) |
320 | 322 | perror_with_name (filename); |
321 | 323 |
@@ -214,7 +214,9 @@ exec_file_attach (char *filename, int from_tty) | ||
214 | 214 | #endif |
215 | 215 | if (scratch_chan < 0) |
216 | 216 | perror_with_name (filename); |
217 | - exec_bfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan); | |
217 | + exec_bfd = bfd_fopen (scratch_pathname, gnutarget, | |
218 | + write_files ? FOPEN_RUB : FOPEN_RB, | |
219 | + scratch_chan); | |
218 | 220 | |
219 | 221 | if (!exec_bfd) |
220 | 222 | error (_("\"%s\": could not open as an executable file: %s"), |
@@ -638,7 +638,7 @@ enable_break2 (void) | ||
638 | 638 | |
639 | 639 | tmp_fd = solib_open (buf, &tmp_pathname); |
640 | 640 | if (tmp_fd >= 0) |
641 | - tmp_bfd = bfd_fdopenr (tmp_pathname, gnutarget, tmp_fd); | |
641 | + tmp_bfd = bfd_fopen (tmp_pathname, gnutarget, FOPEN_RB, tmp_fd); | |
642 | 642 | |
643 | 643 | if (tmp_bfd == NULL) |
644 | 644 | { |
@@ -893,7 +893,7 @@ enable_break (void) | ||
893 | 893 | |
894 | 894 | tmp_fd = solib_open (buf, &tmp_pathname); |
895 | 895 | if (tmp_fd >= 0) |
896 | - tmp_bfd = bfd_fdopenr (tmp_pathname, gnutarget, tmp_fd); | |
896 | + tmp_bfd = bfd_fopen (tmp_pathname, gnutarget, FOPEN_RB, tmp_fd); | |
897 | 897 | |
898 | 898 | if (tmp_bfd == NULL) |
899 | 899 | goto bkpt_at_symbol; |
@@ -253,7 +253,7 @@ solib_map_sections (void *arg) | ||
253 | 253 | } |
254 | 254 | |
255 | 255 | /* Leave scratch_pathname allocated. abfd->name will point to it. */ |
256 | - abfd = bfd_fdopenr (scratch_pathname, gnutarget, scratch_chan); | |
256 | + abfd = bfd_fopen (scratch_pathname, gnutarget, FOPEN_RB, scratch_chan); | |
257 | 257 | if (!abfd) |
258 | 258 | { |
259 | 259 | close (scratch_chan); |
@@ -1284,7 +1284,7 @@ symfile_bfd_open (char *name) | ||
1284 | 1284 | name = absolute_name; /* Keep 2nd malloc'd copy in bfd */ |
1285 | 1285 | /* It'll be freed in free_objfile(). */ |
1286 | 1286 | |
1287 | - sym_bfd = bfd_fdopenr (name, gnutarget, desc); | |
1287 | + sym_bfd = bfd_fopen (name, gnutarget, FOPEN_RB, desc); | |
1288 | 1288 | if (!sym_bfd) |
1289 | 1289 | { |
1290 | 1290 | close (desc); |