From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24264 invoked by alias); 15 Oct 2002 02:49:11 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 24254 invoked from network); 15 Oct 2002 02:49:09 -0000 Received: from unknown (HELO mailgw1a.lmco.com) (192.31.106.7) by sources.redhat.com with SMTP; 15 Oct 2002 02:49:09 -0000 Received: from emss02g01.ems.lmco.com (relay2.ems.lmco.com [166.29.2.54]) by mailgw1a.lmco.com (8.11.6/8.11.6) with ESMTP id g9F2n9O01530 for ; Mon, 14 Oct 2002 20:49:09 -0600 (MDT) Received: from CONVERSION-DAEMON.lmco.com by lmco.com (PMDF V6.1-1 #40644) id <0H4000I0155X4I@lmco.com> for insight@sources.redhat.com; Mon, 14 Oct 2002 20:49:09 -0600 (MDT) Received: from emss07m01.lmtas.lmco.com ([134.189.176.106]) by lmco.com (PMDF V6.1-1 #40644) with ESMTP id <0H400005C55UM1@lmco.com> for insight@sources.redhat.com; Mon, 14 Oct 2002 20:49:07 -0600 (MDT) Received: by emss07m01.lmtas.lmco.com with Internet Mail Service (5.5.2653.19) id <4VLA5ZDA>; Mon, 14 Oct 2002 21:49:09 -0500 Content-return: allowed Date: Mon, 14 Oct 2002 19:49:00 -0000 From: "Matteucci, Cheryl A (N-B&M Assoicates)" Subject: User Defined Types and the Debugger To: "'insight@sources.redhat.com'" Message-id: MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-SW-Source: 2002-q4/txt/msg00039.txt.bz2 Support, I am using the cygwin C++ debugger (Insight GNU Debugger) to look at some code. I have an expression: A = B / C where A = floating point class attribute (not static or const, class scope) B = locally defined floating point variable (not static or const) C = user defined floating point type that is static and const (class scope). All of the above is in the same class. The debugger shows me a value of 0 for C, but it is statically initialized to 70.0. I set a breakpoint at this line of code and when I step through this line of code, the debugger gives me a segmentation violation (I assume because it thinks I am dividing by zero). But if I set a breakpoint at some point after this line of code, the debugger successfully executes it. When I run the program outside of the debugger, it is successfully executed. Why do I get a segmentation violation when I step through this line? The value is initialized. Why can't the debugger see it? Do I need to set something or do something in addition? HHHHEEEELLLPPPP!!! This is really frustrating!!!!!!!!!!!! Thank you, Cheryl (Very Annoyed!) ============================================== Cheryl Matteucci UAE Test Station Software Lockheed Martin Aeronautics Ft. Worth, TX (817) 777-2350 cheryl.a.matteucci@lmco.com