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] |
The following patch combines the ops->bfd_open callback I need for the Cell debugger with the OBJF_KEEPBFD, and also extracts the bulk of the solib_bfd_open functionality into subroutines that might be re-used by target-specific implementations.
Can you verify that this would also allow a Darwin implementation?
diff -urNp gdb-orig/gdb/objfiles.c gdb-head/gdb/objfiles.c --- gdb-orig/gdb/objfiles.c 2008-12-06 20:28:59.000000000 +0100 +++ gdb-head/gdb/objfiles.c 2008-12-14 17:52:16.000000000 +0100 @@ -424,7 +424,7 @@ free_objfile (struct objfile *objfile)
/* We always close the bfd. */
- if (objfile->obfd != NULL) + if (objfile->obfd != NULL && !(objfile->flags & OBJF_KEEPBFD))
Thank you, Tristan.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |