* solib-svr4.c (enable_break): Don't free tmp_pathname until
after closing bfd.
2007-08-10 Michael Snyder <msnyder@access-company.com>
+ * solib-svr4.c (enable_break): Don't free tmp_pathname until
+ after closing bfd.
+
* completer.c: Comment/whitespace cleanup.
2007-08-10 Joel Brobecker <brobecker@adacore.com>
tmp_fd = solib_open (buf, &tmp_pathname);
if (tmp_fd >= 0)
tmp_bfd = bfd_fopen (tmp_pathname, gnutarget, FOPEN_RB, tmp_fd);
- xfree (tmp_pathname);
if (tmp_bfd == NULL)
goto bkpt_at_symbol;
/* For whatever reason we couldn't set a breakpoint in the dynamic
linker. Warn and drop into the old code. */
bkpt_at_symbol:
+ xfree (tmp_pathname);
warning (_("Unable to find dynamic linker breakpoint function.\n"
"GDB will be unable to debug shared library initializers\n"
"and track explicitly loaded dynamic code."));