Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 01/10] change gdb to refcount bfd everywhere
Date: Mon, 23 Jul 2012 15:03:00 -0000	[thread overview]
Message-ID: <87txwyr03c.fsf@fleche.redhat.com> (raw)
In-Reply-To: <877gtusfb7.fsf@fleche.redhat.com> (Tom Tromey's message of "Mon,	23 Jul 2012 08:49:32 -0600")

>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> I wonder if I should rename it to gdb_bfd_open_maybe_remote, for
Tom> consistency.  What do you think?  I'm inclined to do it.

Jan> Definitely.

Tom> I'll do this shortly.

Here's that patch.
I'm checking it in.

Tom

2012-07-23  Tom Tromey  <tromey@redhat.com>

	* symfile.c (separate_debug_file_exists): Update.
	(gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
	(reread_symbols): Update.
	* elfread.c (build_id_verify): Update.
	* symfile.h (gdb_bfd_open_maybe_remote): Rename from
	bfd_open_maybe_remote.

Index: elfread.c
===================================================================
RCS file: /cvs/src/src/gdb/elfread.c,v
retrieving revision 1.136
diff -u -r1.136 elfread.c
--- elfread.c	23 Jul 2012 14:58:44 -0000	1.136
+++ elfread.c	23 Jul 2012 15:03:15 -0000
@@ -1109,7 +1109,7 @@
   int retval = 0;
 
   /* We expect to be silent on the non-existing files.  */
-  abfd = bfd_open_maybe_remote (filename);
+  abfd = gdb_bfd_open_maybe_remote (filename);
   if (abfd == NULL)
     return 0;
 
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.341
diff -u -r1.341 symfile.c
--- symfile.c	23 Jul 2012 14:58:44 -0000	1.341
+++ symfile.c	23 Jul 2012 15:03:15 -0000
@@ -1353,7 +1353,7 @@
   if (filename_cmp (name, parent_objfile->name) == 0)
     return 0;
 
-  abfd = bfd_open_maybe_remote (name);
+  abfd = gdb_bfd_open_maybe_remote (name);
 
   if (!abfd)
     return 0;
@@ -1697,7 +1697,7 @@
    returns NULL with the BFD error set.  */
 
 bfd *
-bfd_open_maybe_remote (const char *name)
+gdb_bfd_open_maybe_remote (const char *name)
 {
   bfd *result;
 
@@ -2516,7 +2516,7 @@
 	    obfd_filename = bfd_get_filename (objfile->obfd);
 	    /* Open the new BFD before freeing the old one, so that
 	       the filename remains live.  */
-	    objfile->obfd = bfd_open_maybe_remote (obfd_filename);
+	    objfile->obfd = gdb_bfd_open_maybe_remote (obfd_filename);
 	    gdb_bfd_unref (obfd);
 	  }
 
Index: symfile.h
===================================================================
RCS file: /cvs/src/src/gdb/symfile.h,v
retrieving revision 1.112
diff -u -r1.112 symfile.h
--- symfile.h	20 Jul 2012 17:38:04 -0000	1.112
+++ symfile.h	23 Jul 2012 15:03:15 -0000
@@ -550,7 +550,7 @@
 
 extern bfd *symfile_bfd_open (char *);
 
-extern bfd *bfd_open_maybe_remote (const char *);
+extern bfd *gdb_bfd_open_maybe_remote (const char *);
 
 extern int get_section_index (struct objfile *, char *);
 


  parent reply	other threads:[~2012-07-23 15:03 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-18 19:32 Tom Tromey
2012-07-19 14:18 ` Jan Kratochvil
2012-07-19 20:58   ` Tom Tromey
2012-07-20 16:37     ` Tom Tromey
2012-07-20 18:11       ` Jan Kratochvil
2012-07-20 16:37     ` Tom Tromey
2012-07-23  8:54       ` Jan Kratochvil
2012-07-23  9:06         ` Jan Kratochvil
2012-07-23 15:23           ` Tom Tromey
2012-07-23 15:25             ` Tom Tromey
2012-07-24 13:17             ` Jan Kratochvil
2012-07-24 19:52               ` Tom Tromey
2012-07-24 20:27                 ` Eli Zaretskii
2012-07-25 14:25                   ` Tom Tromey
2012-07-25 14:29                     ` Jan Kratochvil
2012-07-25 14:52                       ` Tom Tromey
2012-07-25 14:55                         ` Jan Kratochvil
2012-07-25 15:44                           ` Tom Tromey
2012-07-25 15:37                     ` Eli Zaretskii
2012-07-25 11:57                 ` Jan Kratochvil
2012-07-23 14:52         ` Tom Tromey
2012-07-23 18:54         ` Tom Tromey
2012-07-23 19:02           ` Jan Kratochvil
2012-07-23 19:08             ` Tom Tromey
2012-07-22 19:00     ` Jan Kratochvil
2012-07-23 14:49       ` Tom Tromey
2012-07-23 15:01         ` Tom Tromey
2012-07-23 15:03         ` Tom Tromey [this message]
2012-07-20 16:31   ` Tom Tromey
2012-07-20 18:10     ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txwyr03c.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox