This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: argc - cant access memory
- From: Jim Blandy <jimb at codesourcery dot com>
- To: Hadron <hadronquark at googlemail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 09 Jul 2007 14:04:41 -0700
- Subject: Re: argc - cant access memory
- References: <87ejjhg137.fsf@gmail.com>
Hadron <hadronquark@googlemail.com> 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?