From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29693 invoked by alias); 11 Jul 2007 07:50:00 -0000 Received: (qmail 29683 invoked by uid 22791); 11 Jul 2007 07:50:00 -0000 X-Spam-Check-By: sourceware.org Received: from smtp100.biz.mail.mud.yahoo.com (HELO smtp100.biz.mail.mud.yahoo.com) (68.142.201.176) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 11 Jul 2007 07:49:55 +0000 Received: (qmail 96546 invoked from network); 11 Jul 2007 06:03:14 -0000 Received: from unknown (HELO ?192.168.1.132?) (wenbo.yang@simplnano.com@211.101.21.42 with plain) by smtp100.biz.mail.mud.yahoo.com with SMTP; 11 Jul 2007 06:03:13 -0000 X-YMail-OSG: MMdzXc0VM1lYSJqiB2DQdTtUGD3L7NdAsyaOgIJA6CB6xIycWrkBJC5Hqa6JnYFIlsHkUw3BXI.e5X9IpRDLxB9JiQ-- Message-ID: <4694726D.7030306@simplnano.com> Date: Wed, 11 Jul 2007 07:50:00 -0000 From: Wenbo Yang User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: dave.tw@gmail.com CC: gdb@sourceware.org Subject: Re: RSP handling References: <1183949787.19182.ezmlm@sourceware.org> <4691C53B.8070903@simplnano.com> In-Reply-To: <4691C53B.8070903@simplnano.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-07/txt/msg00089.txt.bz2 > s88 wrote: > > but something is strange after the connection created. I set a > breakpoint in the main function (br main), but after the connection > created the gdb stop at the first instruction of crt0.S. Is there anything wrong? Your stub gave GDB where the PC pointed to, and GDB printed it out with source code accordingly. You didn't start debugging, you were just attaching to the target. The PC you got should be the saved PC value while enter exception handler(stub). It has little meaning, you can go ahead by "continue". Wenbo -- Wenbo Yang The State Key Lab. of Information Security Graduate School of CAS, 19A Yuquan Road, Beijing, China Homepage: http://solrex.cn SimpLight Nanoelectronics Ltd. 6 Zhichun Road, 10th Floor, Beijing, China Phone: +86-10-5126-6989 --- Email: wenbo.yang@simplnano.com