From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27238 invoked by alias); 9 Jul 2007 22:34:26 -0000 Received: (qmail 27228 invoked by uid 22791); 9 Jul 2007 22:34:25 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Jul 2007 22:34:22 +0000 Received: from kahikatea.snap.net.nz (216.61.255.123.dynamic.snap.net.nz [123.255.61.216]) by viper.snap.net.nz (Postfix) with ESMTP id EF8873D984F; Tue, 10 Jul 2007 10:34:18 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id A41C28FBF6; Tue, 10 Jul 2007 10:34:17 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18066.47080.812496.129394@kahikatea.snap.net.nz> Date: Mon, 09 Jul 2007 22:34:00 -0000 To: Jim Blandy Cc: Hadron , gdb@sourceware.org Subject: Re: argc - cant access memory In-Reply-To: References: <87ejjhg137.fsf@gmail.com> X-Mailer: VM 7.19 under Emacs 22.1.50.12 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-07/txt/msg00068.txt.bz2 > > I recently compiled and executed an opengl programming guide (redbook) > > example, hello.c, successfully. However, when I try to debug it under > > GUD I get > > > > ,---- > > | #0 main (argc=Cannot access memory at address 0x2d > > | ) at hello.c:93 > > `---- > > The code you labeled "hello.c" has no line 93. Are you sure you're > debugging the program you intended to? Aside from that, I think it just means that the arguments have been optimised away. I think current GCC does this now even if the user doesn't specify optimisation. It doesn't stop you from debugging does it? -- Nick http://www.inet.net.nz/~nickrob