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: [patch][rfc] Allow GDB to search for the right libthread_db.so.1


On Mon, May 4, 2009 at 11:31, Paul Pluzhnikov <ppluzhnikov@google.com> wrote:
> On Sun, May 3, 2009 at 5:06 PM, Hui Zhu <teawater@gmail.com> wrote:
>
>> If we can let user create a slink here, ?User can create slink to
>> right lib with themselves. ?Maybe they don't need set
>> libthread_db_search_path then.
>
> Hui, I think you are loosing track of what this patch is for.
>
> The goal of this patch is to allow GDB to "just work" in the presence
> of multiple incompatible libthread_db's. If you remove
> libthread_db_search_path, then *no matter* which symlinks you create,
> GDB will not work for some executables, unless you also reset
> LD_LIBRARY_PATH, or reset the symlink before each invocation, neither
> of which is automatic or desireable.
>

Without this function, what I need to do is:
mv /lib/tls/i686/cmov/libthread_db.so.1 /lib/tls/i686/cmov/libthread_db.so.1.old
mv right_libthread_db /lib/tls/i686/cmov/libthread_db.so.1

Actually, I think libthread_db_search_path is cool function,  not
because it can't be substituted, but because it can make gdb more
powerful.
But if after we have this function, we still need:
> even in this case, it's easy to create a symbolic link in a user
> area, and update the path to point to that directory.
I don't think it is very well.

Sorry for my words is directly.

Thanks,
Hui


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