public inbox for prelink@sourceware.org
 help / color / mirror / Atom feed
From: keshav yadav <keshav.yadav2005@gmail.com>
To: prelink@sourceware.org, jakub@redhat.com
Subject: prelink isue with gdb
Date: Tue, 20 Apr 2010 12:06:00 -0000	[thread overview]
Message-ID: <m2j9651e57b1004200505j47694abcv42701c2eb70d18c4@mail.gmail.com> (raw)
In-Reply-To: <o2m9651e57b1004200246z6b05266cp90219661ca298692@mail.gmail.com>

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

           reply	other threads:[~2010-04-20 12:06 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <o2m9651e57b1004200246z6b05266cp90219661ca298692@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2j9651e57b1004200505j47694abcv42701c2eb70d18c4@mail.gmail.com \
    --to=keshav.yadav2005@gmail.com \
    --cc=jakub@redhat.com \
    --cc=prelink@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).