• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionab74cba4ae0bd31e885cb197de43ae5dc54b5e4a (tree)
Time2005-06-14 03:43:57
AuthorMark Mitchell <mark@code...>
CommiterMark Mitchell

Log Message

* 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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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+
110 2005-03-25 Mark Kettenis <kettenis@gnu.org>
211
312 * dwarf2-frame.h: Update copyrigh year.
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -315,7 +315,9 @@ core_open (char *filename, int from_tty)
315315 if (scratch_chan < 0)
316316 perror_with_name (filename);
317317
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);
319321 if (temp_bfd == NULL)
320322 perror_with_name (filename);
321323
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -214,7 +214,9 @@ exec_file_attach (char *filename, int from_tty)
214214 #endif
215215 if (scratch_chan < 0)
216216 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);
218220
219221 if (!exec_bfd)
220222 error (_("\"%s\": could not open as an executable file: %s"),
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -638,7 +638,7 @@ enable_break2 (void)
638638
639639 tmp_fd = solib_open (buf, &tmp_pathname);
640640 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);
642642
643643 if (tmp_bfd == NULL)
644644 {
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -893,7 +893,7 @@ enable_break (void)
893893
894894 tmp_fd = solib_open (buf, &tmp_pathname);
895895 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);
897897
898898 if (tmp_bfd == NULL)
899899 goto bkpt_at_symbol;
--- a/gdb/solib.c
+++ b/gdb/solib.c
@@ -253,7 +253,7 @@ solib_map_sections (void *arg)
253253 }
254254
255255 /* 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);
257257 if (!abfd)
258258 {
259259 close (scratch_chan);
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1284,7 +1284,7 @@ symfile_bfd_open (char *name)
12841284 name = absolute_name; /* Keep 2nd malloc'd copy in bfd */
12851285 /* It'll be freed in free_objfile(). */
12861286
1287- sym_bfd = bfd_fdopenr (name, gnutarget, desc);
1287+ sym_bfd = bfd_fopen (name, gnutarget, FOPEN_RB, desc);
12881288 if (!sym_bfd)
12891289 {
12901290 close (desc);