From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31645 invoked by alias); 8 Aug 2003 13:37:02 -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 31536 invoked from network); 8 Aug 2003 13:36:59 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.131) by sources.redhat.com with SMTP; 8 Aug 2003 13:36:59 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 151AE2B7F; Fri, 8 Aug 2003 09:36:50 -0400 (EDT) Message-ID: <3F33A771.9080308@redhat.com> Date: Fri, 08 Aug 2003 13:37:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jose Paul Cc: gdb@sources.redhat.com Subject: Re: GDB does not returns References: <003201c357e6$29de3970$e900a8c0@jose> <3F330A96.8050607@redhat.com> <000e01c35d66$62933dd0$e900a8c0@jose> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00116.txt.bz2 > (gdb) break _exit > Breakpoint 1 at 0x8010f040: file /ecos-d/DeviceStudio/ecos/src/ecos-s > es/language/c/libc/startup/current/src/_exit.cxx, line 83. > (gdb) continue > Continuing. > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > Hello world! > [New Thread 2] > [Switching to Thread 2] > > Breakpoint 1, _exit (status=0) at /ecos-d/DeviceStudio/ecos/src/ecos- > ges/language/c/libc/startup/current/src/_exit.cxx:83 > 83 CYG_ASSERT( status == 0, "Program _exiting with non-zero > s"); > Current language: auto; currently c++ Right. Your program's been stopped just mm from its real exit. > (gdb) c > Continuing. That won't go anywhere. The remote end will need to be modified so that _exit causes the target to report back a program-exited packet (Wnn, see Remote Protocol in the doco). It appears at present _exit is simply implemented as an infinite loop.. Andrew