This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: remove redundant call to gdb_bfd_stash_filename


I'm checking this in.

While auditing the refcounting changes, I noticed that I had left a
redundant call to gdb_bfd_stash_filename in try_open_dwo_file.
This is redundant because gdb_bfd_open calls it.

Tom

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

	* dwarf2read.c (try_open_dwo_file): Don't call
	gdb_bfd_stash_filename.

Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.694
diff -u -r1.694 dwarf2read.c
--- dwarf2read.c	19 Jul 2012 16:35:48 -0000	1.694
+++ dwarf2read.c	20 Jul 2012 16:09:42 -0000
@@ -8278,7 +8278,6 @@
       xfree (absolute_name);
       return NULL;
     }
-  gdb_bfd_stash_filename (sym_bfd);
   xfree (absolute_name);
   bfd_set_cacheable (sym_bfd, 1);
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]