From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22479 invoked by alias); 1 May 2005 19:13:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22465 invoked by uid 48); 1 May 2005 19:13:26 -0000 Date: Sun, 01 May 2005 19:13:00 -0000 Message-ID: <20050501191326.22464.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050501191141.21322.fastsnip-gcc@yahoo.com> References: <20050501191141.21322.fastsnip-gcc@yahoo.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/21322] O2 and O3 memory access error - compiled program - incorrect debug output X-Bugzilla-Reason: CC X-SW-Source: 2005-05/txt/msg00155.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-01 19:13 ------- What version of gdb? Read : GCC now generates location lists by default when compiling with debug info and optimization. GDB 6.0 and older crashes when it sees location lists. GDB 6.1 or later is needed to debug binaries containing location lists. When you are trying to view a value of a variable in a part of a function where it has no location (for example when the variable is no longer used and thus its location was used for something else) GDB will say that it is not available. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21322