From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8166 invoked by alias); 10 Sep 2003 18:58:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8154 invoked from network); 10 Sep 2003 18:58:36 -0000 Received: from unknown (HELO motgate.mot.com) (129.188.136.100) by sources.redhat.com with SMTP; 10 Sep 2003 18:58:36 -0000 Received: from az33exr04.mot.com (az33exr04.mot.com [10.64.251.234]) by motgate.mot.com (Motorola/Motgate) with ESMTP id h8AIwZIl022666; Wed, 10 Sep 2003 11:58:35 -0700 (MST) Received: from hyper.wm.sps.mot.com ([199.10.246.43]) by az33exr04.mot.com (Motorola/az33exr04) with ESMTP id h8AIwWqa014601; Wed, 10 Sep 2003 13:58:33 -0500 Received: (from pbarada@localhost) by hyper.wm.sps.mot.com (8.11.6/8.11.6) id h8AIwVL08960; Wed, 10 Sep 2003 14:58:31 -0400 Date: Wed, 10 Sep 2003 18:58:00 -0000 Message-Id: <200309101858.h8AIwVL08960@hyper.wm.sps.mot.com> From: Peter Barada To: gdb@sources.redhat.com, libc-alpha@sources.redhat.com CC: Peter.Barada@motorola.com, peter@baradas.org In-reply-to: <200309101741.h8AHf6I06309@hyper.wm.sps.mot.com> (message from Peter Barada on Wed, 10 Sep 2003 13:41:06 -0400) Subject: Re: Trouble with gdbserver from gdb-5.3, glibc-2.3.2 on ppc32 References: <200309092031.h89KVsI30886@hyper.wm.sps.mot.com> <20030909212241.GA5521@nevyn.them.org> <20030909213003.GA5878@nevyn.them.org> <20030910001816.95A739899C@baradas.org> <200309101741.h8AHf6I06309@hyper.wm.sps.mot.com> X-SW-Source: 2003-09/txt/msg00142.txt.bz2 >Now that the power is back on(and our network is up and runnig again), >I looked again and indeed its statically linked. I'll try dynamically >linking it and see what happens. Ok, my applications runs if its dynamically linked, but if I debug it using gdb-5.3/gdbserver I get the following: (gdb) set solib-absolute-prefix /dev/null (gdb) set solib-search-path /usr/local/wave/x-ppc-linux2/powerpc-linux/lib (gdb) tar remo 10.1.1.3:3001 Remote debugging using 10.1.1.3:3001 0x3000f430 in ?? () (gdb) i b No breakpoints or watchpoints. (gdb) b main Breakpoint 4 at 0x10001eb0: file ../mn/mn.c, line 709. (gdb) c Continuing. Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section [New Thread 16384] Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section Error while reading shared library symbols: DW_FORM_strp pointing outside of .debug_str section [Switching to Thread 16384] Breakpoint 4, main (argc=3, argv=0x7ffffe04) at ../mn/mn.c:709 (gdb) i sh >From To Syms Read Shared Object Library 0x0ff732dc 0x0ffa3994 Yes /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libm.so.6 0x0fefc0f4 0x0ff05140 Yes /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libpthread.so.0 0x0fdbea20 0x0feb64e4 No /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6 0x30001e00 0x300126f0 No /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/ld.so.1 (gdb) i thr * 1 Thread 16384 main (argc=3, argv=0x7ffffe04) at ../mn/mn.c:709 (gdb) s (gdb) s (gdb) c Continuing. [New Thread 32769] Program received signal ?, Unknown signal. [Switching to Thread 32769] 0x0fdd4d5c in ?? () from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6 (gdb) where #0 0x0fdd4d5c in ?? () from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6 (gdb) i thr * 2 Thread 32769 0x0fdd4d5c in ?? () from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6 1 Thread 16384 0x0fdd4d5c in ?? () from /home/mylocal/local/wave/x-ppc-linux2/powerpc-linux/lib/libc.so.6 (gdb) disp/3i $pc 1: x/3i $pc 0xfdd4d5c: mfcr r0 0xfdd4d60: mr r31,r3 0xfdd4d64: andis. r9,r0,4096 (gdb) si And gdb never comes back to me(whether I us step, stepi, continue, and it is interruptable with a C-c, but the pc is still at 0xfdd4d5c). Any suggestions as to why its not executing under gdb are highly appreciated! -- Peter Barada Peter.Barada@motorola.com Wizard 781-852-2768 (direct) WaveMark Solutions(A Motorola Company) 781-270-0193 (fax)