From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25715 invoked by alias); 20 Sep 2002 08:44:14 -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 25692 invoked from network); 20 Sep 2002 08:44:12 -0000 Received: from unknown (HELO mail.onlysmart.com) (202.138.104.4) by sources.redhat.com with SMTP; 20 Sep 2002 08:44:12 -0000 Received: from homecomp ([202.138.105.229]) by mail.onlysmart.com (8.10.1/8.10.1) with SMTP id g8K8ZRr31590 for ; Fri, 20 Sep 2002 14:05:27 +0530 Message-ID: <00a501c26081$cce7dbb0$e5698aca@homecomp> From: "Prashant Deva" To: "gdb" Subject: Are ASSERT style macros prossible with gdb? Date: Fri, 20 Sep 2002 01:44:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-SW-Source: 2002-09/txt/msg00306.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. 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?