From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31458 invoked by alias); 14 May 2009 14:05:43 -0000 Received: (qmail 30994 invoked by uid 22791); 14 May 2009 14:05:40 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=BAYES_00,MSGID_MULTIPLE_AT,SPF_PASS X-Spam-Check-By: sourceware.org Received: from cam-admin0.cambridge.arm.com (HELO cam-admin0.cambridge.arm.com) (193.131.176.58) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 May 2009 14:05:35 +0000 Received: from cam-owa1.Emea.Arm.com (cam-owa1.emea.arm.com [10.1.255.62]) by cam-admin0.cambridge.arm.com (8.12.6/8.12.6) with ESMTP id n4EE4pZm026328; Thu, 14 May 2009 15:04:51 +0100 (BST) Received: from E101739 ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Thu, 14 May 2009 15:05:30 +0100 From: "Anthony Berent" To: "'Florent DEFAY'" , References: <8502af3c0905140623nece4f1dv1e03c2c841c59e42@mail.gmail.com> In-Reply-To: <8502af3c0905140623nece4f1dv1e03c2c841c59e42@mail.gmail.com> Subject: RE: new port Date: Thu, 14 May 2009 14:05:00 -0000 Message-ID: <000001c9d49d$08c741c0$1a55c540$@Berent@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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: 2009-05/txt/msg00076.txt.bz2 Florent, I have also been porting to a new architecture, and recently solved similar problems with next. The way next works is that, after a step, it checks whether an extra frame has been added to the stack. If it has, and various other checks are satisfied, then it places a breakpoint on the return address and runs on. Otherwise it simply stops after the first step. Try stepping into the function using stepi, stopping at its first instruction, and then having a look at the stack frames (using bt and "info frames"). If these look wrong then that is probably your problem. - Anthony -----Original Message----- From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] On Behalf Of Florent DEFAY Sent: 14 May 2009 14:24 To: gdb@sourceware.org Subject: new port Hi, I work on porting GDB to a new arch. I already ported GCC. I meet some problems, I need help. At the moment, I can use most of basic GDB commands. I can set breakpoints and stop on them. I can set breakpoints on function names. I can step. I can read locals and registers. When I use the command 'next', it should step and skip functions. The problem is that indeed it steps but it does not skip functions. It step into the function. Please help. Regards. Florent