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]

Re: [RFC] solib for darwin



On Dec 4, 2008, at 4:38 PM, Ulrich Weigand wrote:


Interesting; I've been running into the same problem with supporting
SPU contexts as libraries in the context of the multi-architecture
Cell debugger.

Fun! We have common interest to improve the multi-arch support in gdb.


However, instead of just overriding the bfd_check_format call (which
b.t.w. does a lot more than just checking the format, no matter its
name :-/), I've allowed the solib implementation to override the
whole solib_bfd_open call; this seems to provide more options for
future changes ...

Right, your approach is more generic that mine. However with your approach,
we need to also create a more generic version of solib_bfd_open so that the
overriders don't have to duplicate all the features of the current solib_bfd_open
(handling remotes, pathes...)


I think that with your patch I don't need anymore to change non-Darwin files.

I've been wondering about the two bfds as well; note that solib simply
mirrors what is being done for the main executable file (where we have
one bfd for the exec file and one for the symbol file).  With my
patch I've kept two bfds, but call the solib override implementation
to open each of them.

My concern was speed and memory resources as the number of shared libraries might be
large and access to them are slower (search path, ...)
Anyway, this can be addressed later.


Maybe you can have a look at my patch:
http://sourceware.org/ml/gdb-patches/2008-09/msg00136.html
and see whether this would solve your problem as well (or if we can
come up with a joint approach to solve both problems).

I think it does. Do you plan to commit it ?


Thanks,
Tristan.


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