* symfile.c (symbol_file_add): Don't open BFD twice.
This commit is contained in:
parent
53ab40660e
commit
882f447fdd
|
@ -1,3 +1,7 @@
|
||||||
|
2012-07-24 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* symfile.c (symbol_file_add): Don't open BFD twice.
|
||||||
|
|
||||||
2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
|
2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
|
||||||
|
|
||||||
* breakpoint.c (create_breakpoint): Store condition for pending
|
* breakpoint.c (create_breakpoint): Store condition for pending
|
||||||
|
|
|
@ -1208,8 +1208,7 @@ symbol_file_add (char *name, int add_flags, struct section_addr_info *addrs,
|
||||||
struct cleanup *cleanup = make_cleanup_bfd_unref (bfd);
|
struct cleanup *cleanup = make_cleanup_bfd_unref (bfd);
|
||||||
struct objfile *objf;
|
struct objfile *objf;
|
||||||
|
|
||||||
objf = symbol_file_add_from_bfd (symfile_bfd_open (name), add_flags, addrs,
|
objf = symbol_file_add_from_bfd (bfd, add_flags, addrs, flags, NULL);
|
||||||
flags, NULL);
|
|
||||||
do_cleanups (cleanup);
|
do_cleanups (cleanup);
|
||||||
return objf;
|
return objf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue