From: "Jim Blandy" <jimb@red-bean.com>
To: "Bill Pursell" <bill.pursell@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: scope in nested function
Date: Fri, 31 Mar 2006 07:54:00 -0000 [thread overview]
Message-ID: <8f2776cb0603302257t14f38361ibf8ab1cb74dfb774@mail.gmail.com> (raw)
In-Reply-To: <442CC4BB.5070709@gmail.com>
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.
next prev parent reply other threads:[~2006-03-31 6:57 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 [this message]
2006-03-31 8:19 ` Bill Pursell
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=8f2776cb0603302257t14f38361ibf8ab1cb74dfb774@mail.gmail.com \
--to=jimb@red-bean.com \
--cc=bill.pursell@gmail.com \
--cc=gdb@sourceware.org \
/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