public inbox for prelink@sourceware.org
 help / color / mirror / Atom feed
* prelink isue with gdb
       [not found] <o2m9651e57b1004200246z6b05266cp90219661ca298692@mail.gmail.com>
@ 2010-04-20 12:06 ` keshav yadav
  0 siblings, 0 replies; only message in thread
From: keshav yadav @ 2010-04-20 12:06 UTC (permalink / raw)
  To: prelink, jakub

When a MIPS application compiled with -g option is prelinked and it is
made to crash on MIPS target then the coredump generated is used for
debugging using gdb

then the local variables and function parameter are not displayed.
below is the log.

In the log listed below he prelinked librares and application are kept
in 'li' directory then gdb from mips toolchain is executing with
parameters having coredump and 'li' directory path.

Rest is shown in the log list below.

---------------------------------------------------------------------------------------------------------------------------------------------

(gdb) set solib-search-path ./li
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared1.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared1.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared2.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared2.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared3.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared3.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared4.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared4.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared5.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared5.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libstdc++.so.6...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libstdc++.so.6
Reading symbols from /home/naveen/Public/faris/test-kdbg/li/libm.so.6...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libm.so.6
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libgcc_s.so.1...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libgcc_s.so.1
Reading symbols from /home/naveen/Public/faris/test-kdbg/li/libc.so.6...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libc.so.6
Reading symbols from /home/naveen/Public/faris/test-kdbg/li/ld.so.1...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/ld.so.1
(gdb) bt full
#0  0x2c470694 in crash5 () from
/home/naveen/Public/faris/test-kdbg/li/libshared5.so
No symbol table info available.
#1  0x2c45070c in crash4 () from
/home/naveen/Public/faris/test-kdbg/li/libshared4.so
No symbol table info available.
#2  0x2c43070c in crash3 () from
/home/naveen/Public/faris/test-kdbg/li/libshared3.so
No symbol table info available.
#3  0x2c410700 in crash2 () from
/home/naveen/Public/faris/test-kdbg/li/libshared2.so
No symbol table info available.
#4  0x2c3f0700 in crash1 () from
/home/naveen/Public/faris/test-kdbg/li/libshared1.so
No symbol table info available.
---------------------------------------------------------------------------------------------------------------------------------------------------------

where as if the application is not prelinked both local variables and
function arguments are displayed correctly.

below is the counterpart log list of the above with non-prelinked
libraries and application.

---------------------------------------------------------------------------------------------------------------------------------------------------------

(gdb) set solib-search-path ./li
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared1.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared1.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared2.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared2.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared3.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared3.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared4.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared4.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libshared5.so...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libshared5.so
Reading symbols from
/home/naveen/Public/faris/test-kdbg/li/libstdc++.so.6...done.
Loaded symbols for /home/naveen/Public/faris/test-kdbg/li/libstdc++.so.6
Reading symbols from
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libm.so.6...done.
Loaded symbols for
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libm.so.6
Reading symbols from
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libgcc_s.so.1...done.
Loaded symbols for
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libgcc_s.so.1
Reading symbols from
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libc.so.6...done.
Loaded symbols for
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/libc.so.6
Reading symbols from
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/ld.so.1...done.
Loaded symbols for
/home/naveen/Public/toolchain_mips24ke_nfp_be/target/lib/ld.so.1
(gdb) bt full
#0  0x2ab1d694 in crash5 (val5=0x7fa7ad80) at shared5.c:15
        ptr5 = 0x0
        j5 = 30
#1  0x2ab0c70c in crash4 (val4=0x7fa7ad80) at shared4.c:14
        ptr4 = 0x0
        j4 = 30
#2  0x2aafb70c in crash3 (val3=0x7fa7ad80) at shared3.c:14
        ptr3 = 0x0
        j3 = 30
#3  0x2aaea700 in crash2 (val2=0x7fa7ad80) at shared2.c:12
        ptr2 = 0x0
        j2 = 20
#4  0x2aad9700 in crash1 (val1=0x7fa7ad80) at shared1.c:12
        ptr1 = 0x0
        j1 = 10
#5  0x004008e4 in main () at main.c:10
        i = 30
Current language:  auto; currently c++
(gdb)

---------------------------------------------------------------------------------------------------------------------------------------------------------

There is no such issue with ARm application

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-20 12:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <o2m9651e57b1004200246z6b05266cp90219661ca298692@mail.gmail.com>
2010-04-20 12:06 ` prelink isue with gdb keshav yadav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).