From: Bill Pursell <bill.pursell@gmail.com>
To: Jim Blandy <jimb@red-bean.com>
Cc: gdb@sourceware.org
Subject: Re: scope in nested function
Date: Fri, 31 Mar 2006 08:19:00 -0000 [thread overview]
Message-ID: <442CCE46.7080800@gmail.com> (raw)
In-Reply-To: <8f2776cb0603302257t14f38361ibf8ab1cb74dfb774@mail.gmail.com>
Jim Blandy wrote:
> On 3/30/06, Bill Pursell <bill.pursell@gmail.com> wrote:
>
>>I'm not sure how to reference a variable in a nested function from gdb.
>>In the gdb session below, there are 2 things I don't understand
>>how to do:
>>
>>1) how do I set a breakpoint in foo? (other than by referencing a line
>> number)
>
>
> Have you tried calling it main::foo?
>
>
>>2) when I'm in foo, how do I reference i?
>
>
> Have you tried calling it main::i?
>
> I'm not sure these will work, but I think they're supposed to.
>
I get the error:
Can't find member of namespace, class, struct, or union named "main::foo"
Same for main::i
next prev parent reply other threads:[~2006-03-31 7:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-31 7:36 Bill Pursell
2006-03-31 7:54 ` Jim Blandy
2006-03-31 8:19 ` Bill Pursell [this message]
2006-03-31 13:59 ` Ramana Radhakrishnan
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=442CCE46.7080800@gmail.com \
--to=bill.pursell@gmail.com \
--cc=gdb@sourceware.org \
--cc=jimb@red-bean.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