Skip to contentSkip to conversation

cross compiling gdb for ppc

DISCUSSION Miku Jha 2 participants 3 messages Jul 11, 2003

lore
Share & tools
lore

Miku Jha

author
#0 lore raw

Hi

I have downloaded gdb version 5.3 and cross compiled it for target ppc-linux.

When I run the gdb to debug the core file it somehow refers to the libraries in the /lib path
the libraries for my target machine are somewhere else.

I wanted to know if there is any option or workaround to make gdb point to correct libraries.

Also I am not sure if there are some aditional stuff to be done when cross compiling GDB for power pc

Any help appreciated.

Thanks

=====
mailto:[email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:

When I run the gdb to debug the core file it somehow refers to the libraries in the /lib path
the libraries for my target machine are somewhere else.

I wanted to know if there is any option or workaround to make gdb point to correct libraries.

RTFM.

See especially the "solib-absolute-prefix" variable.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] What the gods would destroy they first submit to an IEEE standards committee.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

author
#2 lore raw

Hi
The solution worked.

I had to change the variable in solib.c file.

Thanks a ton

Quoted 23 lines · --- Wolfgang Denk

In message <[email protected]>

Quoted 2 lines · you

When I run the gdb to debug the core file it

somehow

Quoted 5 lines

refers to the libraries in the /lib path
the libraries for my target machine are somewhere
else.

I wanted to know if there is any option or

workaround

Quoted 1 line

to make gdb point to correct libraries.

RTFM.

See especially the "solib-absolute-prefix" variable.

Best regards,

Wolfgang Denk

Quoted 8 lines

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88
Email: [email protected]
What the gods would destroy they first submit to an
IEEE standards
committee.

=====
mailto:[email protected]

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/