Operating System - HP-UX
1748254 Members
4046 Online
108760 Solutions
New Discussion

Tell adb to load libs from alt dirs

 
Reuben Cox
New Member

Tell adb to load libs from alt dirs

I have a core file generated on an HP IA64 machine. I have the executable and shared objects related to the core file. I am trying to get the call stack using the adb debugger but the core file was generated on a machine I don't have access to, so the shared objects are in a different location than they are at the time the core file was generated.

I know if I have a similar situation using gdb I would do the following:

machine:user> gdb
(gdb) set solib-search-path path1:path2:path3
(gdb) file
(gdb) core
Where the setting of solib-search-path tells gdb where to load shared libraries from.

Is there an equivalent if I'm using adb?
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Tell adb to load libs from alt dirs

>I am trying to get the call stack using the adb debugger

Don't even think of using adb, use gdb. Just download the latest.

>but the core file was generated on a machine I don't have access to

This is where gdb's packcore will help.

>using gdb I would do the following:
(gdb) set solib-search-path path1:path2:path3

That seems too hard. unpackcore or exporting GDB_SHLIB_PATH will be easier.