From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13098 invoked by alias); 27 Sep 2002 00:18:51 -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 13088 invoked from network); 27 Sep 2002 00:18:50 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 27 Sep 2002 00:18:50 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 2534C3E0E; Thu, 26 Sep 2002 20:18:51 -0400 (EDT) Message-ID: <3D93A3EA.3020506@redhat.com> Date: Thu, 26 Sep 2002 17:18:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Prashant Deva Cc: gdb Subject: Re: Are ASSERT style macros prossible with gdb? References: <00a501c26081$cce7dbb0$e5698aca@homecomp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-09/txt/msg00466.txt.bz2 > In VC++ you can put the expressions within an ASSERT macro the effect of > which being that while running if the expression evaluates to false the > program gives an option to start the debugger and break on the line on which > the assert statement evaluated to false. You might be able to do something using system ("gdb argv[0] getpid()"); > I want to know if such kind of functionality is possible with gdb. Is there > anyway within the windows evnviroment that the running program if > encountered an error can send a msg to gdb to attach itself to the program > and break on the specific line? I'm not sure, but nana may also be useful. http://www.gnu.org/software/nana/ Andrew