From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31410 invoked by alias); 9 Jul 2007 21:04:48 -0000 Received: (qmail 31320 invoked by uid 22791); 9 Jul 2007 21:04:47 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Jul 2007 21:04:43 +0000 Received: (qmail 1544 invoked from network); 9 Jul 2007 21:04:41 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 9 Jul 2007 21:04:41 -0000 To: Hadron Cc: gdb@sourceware.org Subject: Re: argc - cant access memory References: <87ejjhg137.fsf@gmail.com> From: Jim Blandy Date: Mon, 09 Jul 2007 21:04:00 -0000 In-Reply-To: <87ejjhg137.fsf@gmail.com> (Hadron's message of "Mon, 09 Jul 2007 15:26:20 +0200") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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/msg00067.txt.bz2 Hadron writes: > 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?