* How to define shared libray symbol file for GDB in cross debug en vironment?
@ 2003-02-12 10:59 Yu kenny-a18604
2003-02-12 15:00 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Yu kenny-a18604 @ 2003-02-12 10:59 UTC (permalink / raw)
To: gdb
Hi, all:
Here I have trouble in using GDB.
I am in a cross-compiler environment. Host is x86 PC and target is xscale-arm. I've been succeeding in connect arm-gdbserver from host PC. Also I loaded symbol file of my binary - elf.out. But now the trouble is:
There is some shared libraies like libmydb.so I want to load it in host as a symbol file. GDB 'sharedlibrary' command just search this shared-symbol-file in a fixed path - /usr/lib. I could not copy libmydb.so to /usr/lib cause there is a x86 shared library there with the same name. I can't change it now.
So my question is how to direct gdb-host to load shared library symbol file in specific path, for example, /myhome/target(/libmydb.so)?
Thanks in advance,
Kenny Yu (Xuanwei)
PCS R&D, Motorola
108, Jian Guo Road, Chao Yang District,
Beijing, China (100022)
Tel: (86) 10 - 6564 1346
Fax: (86) 10 - 6566 8542
mailto:kenny.yu@motorola.com
[ x ] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to define shared libray symbol file for GDB in cross debug en vironment?
2003-02-12 10:59 How to define shared libray symbol file for GDB in cross debug en vironment? Yu kenny-a18604
@ 2003-02-12 15:00 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-02-12 15:00 UTC (permalink / raw)
To: Yu kenny-a18604; +Cc: gdb
On Wed, Feb 12, 2003 at 06:59:16PM +0800, Yu kenny-a18604 wrote:
> Hi, all:
>
> Here I have trouble in using GDB.
>
> I am in a cross-compiler environment. Host is x86 PC and target is xscale-arm. I've been succeeding in connect arm-gdbserver from host PC. Also I loaded symbol file of my binary - elf.out. But now the trouble is:
>
> There is some shared libraies like libmydb.so I want to load it in host as a symbol file. GDB 'sharedlibrary' command just search this shared-symbol-file in a fixed path - /usr/lib. I could not copy libmydb.so to /usr/lib cause there is a x86 shared library there with the same name. I can't change it now.
>
> So my question is how to direct gdb-host to load shared library symbol file in specific path, for example, /myhome/target(/libmydb.so)?
Look at "set solib-absolute-prefix" and "set solib-search-path".
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-12 15:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-12 10:59 How to define shared libray symbol file for GDB in cross debug en vironment? Yu kenny-a18604
2003-02-12 15:00 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox