Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* RFC: call bfd_init
@ 2013-01-11 15:18 Tom Tromey
  2013-01-11 15:34 ` Joel Brobecker
  2013-01-21 17:39 ` Tom Tromey
  0 siblings, 2 replies; 6+ messages in thread
From: Tom Tromey @ 2013-01-11 15:18 UTC (permalink / raw)
  To: gdb-patches

Technically, a user of BFD is supposed to call bfd_init before calling
any other functions from the library.

bfd_init is a no-op, so right now nothing notices.  But, I figured it
would be safe to add the call in case this ever changes.

Tom

2013-01-11  Tom Tromey  <tromey@redhat.com>

	* main.c (captured_main): Call bfd_init.

diff --git a/gdb/main.c b/gdb/main.c
index c9439bb..6ed014f 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -357,6 +357,8 @@ captured_main (void *data)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
+  bfd_init ();
+
   make_cleanup (VEC_cleanup (cmdarg_s), &cmdarg_vec);
   dirsize = 1;
   dirarg = (char **) xmalloc (dirsize * sizeof (*dirarg));


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-22 15:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 15:18 RFC: call bfd_init Tom Tromey
2013-01-11 15:34 ` Joel Brobecker
2013-01-21 17:39 ` Tom Tromey
2013-01-21 20:40   ` Testsuite regression for gdb.gdb/selftest.exp [Re: RFC: call bfd_init] Jan Kratochvil
2013-01-21 20:45     ` Tom Tromey
2013-01-22 15:47       ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox