From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30627 invoked by alias); 20 Apr 2010 12:06:03 -0000 Received: (qmail 30409 invoked by uid 22791); 20 Apr 2010 12:05:58 -0000 X-SWARE-Spam-Status: No, hits=0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_MSGID_LONG45,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-yx0-f201.google.com (HELO mail-yx0-f201.google.com) (209.85.210.201) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 20 Apr 2010 12:05:49 +0000 Received: by yxe39 with SMTP id 39so1212598yxe.12 for ; Tue, 20 Apr 2010 05:05:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.47.12 with HTTP; Tue, 20 Apr 2010 05:05:47 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Apr 2010 12:06:00 -0000 Received: by 10.101.169.17 with SMTP id w17mr16408005ano.140.1271765147913; Tue, 20 Apr 2010 05:05:47 -0700 (PDT) Message-ID: Subject: prelink isue with gdb From: keshav yadav To: prelink@sourceware.org, jakub@redhat.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact prelink-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: prelink-owner@sourceware.org X-SW-Source: 2010-q2/txt/msg00000.txt.bz2 When a MIPS=A0application 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=A0having 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...don= e. 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...don= e. 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=A0 0x2c470694 in crash5 () from /home/naveen/Public/faris/test-kdbg/li/libshared5.so No symbol table info available. #1=A0 0x2c45070c in crash4 () from /home/naveen/Public/faris/test-kdbg/li/libshared4.so No symbol table info available. #2=A0 0x2c43070c in crash3 () from /home/naveen/Public/faris/test-kdbg/li/libshared3.so No symbol table info available. #3=A0 0x2c410700 in crash2 () from /home/naveen/Public/faris/test-kdbg/li/libshared2.so No symbol table info available. #4=A0 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=A0log 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...do= ne. 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=A0 0x2ab1d694 in crash5 (val5=3D0x7fa7ad80) at shared5.c:15 =A0=A0=A0=A0=A0=A0=A0 ptr5 =3D 0x0 =A0=A0=A0=A0=A0=A0=A0 j5 =3D 30 #1=A0 0x2ab0c70c in crash4 (val4=3D0x7fa7ad80) at shared4.c:14 =A0=A0=A0=A0=A0=A0=A0 ptr4 =3D 0x0 =A0=A0=A0=A0=A0=A0=A0 j4 =3D 30 #2=A0 0x2aafb70c in crash3 (val3=3D0x7fa7ad80) at shared3.c:14 =A0=A0=A0=A0=A0=A0=A0 ptr3 =3D 0x0 =A0=A0=A0=A0=A0=A0=A0 j3 =3D 30 #3=A0 0x2aaea700 in crash2 (val2=3D0x7fa7ad80) at shared2.c:12 =A0=A0=A0=A0=A0=A0=A0 ptr2 =3D 0x0 =A0=A0=A0=A0=A0=A0=A0 j2 =3D 20 #4=A0 0x2aad9700 in crash1 (val1=3D0x7fa7ad80) at shared1.c:12 =A0=A0=A0=A0=A0=A0=A0 ptr1 =3D 0x0 =A0=A0=A0=A0=A0=A0=A0 j1 =3D 10 #5=A0 0x004008e4 in main () at main.c:10 =A0=A0=A0=A0=A0=A0=A0 i =3D 30 Current language:=A0 auto; currently c++ (gdb) ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= --- There is no such issue with ARm application