From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3588 invoked by alias); 25 Jan 2007 02:29:20 -0000 Received: (qmail 3580 invoked by uid 22791); 25 Jan 2007 02:29:20 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.180) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 25 Jan 2007 02:29:10 +0000 Received: by py-out-1112.google.com with SMTP id p76so166814pyb for ; Wed, 24 Jan 2007 18:29:08 -0800 (PST) Received: by 10.35.38.17 with SMTP id q17mr2827909pyj.1169692148825; Wed, 24 Jan 2007 18:29:08 -0800 (PST) Received: from ?192.168.132.167? ( [222.66.14.54]) by mx.google.com with ESMTP id 15sm5514064nzo.2007.01.24.18.29.05; Wed, 24 Jan 2007 18:29:08 -0800 (PST) Message-ID: <45B815DF.3080606@gmail.com> Date: Thu, 25 Jan 2007 02:29:00 -0000 From: Bin Chen User-Agent: Thunderbird 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Bin Chen , gdb@sourceware.org Subject: Re: attach gdbserver to itself References: <45B75585.2030900@gmail.com> <20070124125141.GA3370@nevyn.them.org> <45B7575F.80303@gmail.com> <20070124130510.GA3676@nevyn.them.org> <45B75D05.9030104@gmail.com> <20070124132705.GA5106@nevyn.them.org> In-Reply-To: <20070124132705.GA5106@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-01/txt/msg00317.txt.bz2 Daniel Jacobowitz wrote: > On Wed, Jan 24, 2007 at 09:20:05PM +0800, Bin Chen wrote: > >> But I can do get the backtrace if I running the program through >> gdbserver, not dynamic attach when fault. >> > > That's probably because you aren't inside a called signal handler in > that case. > > >> Anyway, I will try to compile 6.6 to ARM platform, is it supported in >> the release? >> > > Yes, but you will have to set solib-absolute-prefix by hand or compile > it using --with-sysroot (see the manual). > I know what happens now. Seems gdb need unstripped libc-2.3.2.so or other important libs. The libs in my device rootfs are stripped so it can't get the backtrace properly. After changing solib-absolute-prefix to another unstripped version , the gdb can work now... Something weird is that why manully start prog by gdbserver can get the right result...