From: Nick Roberts <nickrob@snap.net.nz>
To: Jim Blandy <jimb@codesourcery.com>
Cc: Hadron <hadronquark@googlemail.com>, gdb@sourceware.org
Subject: Re: argc - cant access memory
Date: Mon, 09 Jul 2007 22:34:00 -0000 [thread overview]
Message-ID: <18066.47080.812496.129394@kahikatea.snap.net.nz> (raw)
In-Reply-To: <m3r6nh70gm.fsf@codesourcery.com>
> > 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
next prev parent reply other threads:[~2007-07-09 22:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-09 13:26 Hadron
2007-07-09 21:04 ` Jim Blandy
2007-07-09 22:34 ` Nick Roberts [this message]
2007-07-10 12:13 ` Hadron
2007-07-10 19:41 ` Dave Korn
2007-07-10 19:46 ` Daniel Jacobowitz
2007-07-10 19:50 ` Dave Korn
2007-07-11 21:13 ` Jim Blandy
2007-07-11 17:41 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18066.47080.812496.129394@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb@sourceware.org \
--cc=hadronquark@googlemail.com \
--cc=jimb@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox