From: Joel Brobecker <brobecker@adacore.com>
To: gdb-patches@sourceware.org
Subject: Re: [RFA] no frame needed when computing address of subprogram
Date: Thu, 03 Jan 2008 04:18:00 -0000 [thread overview]
Message-ID: <20080103041814.GF15903@adacore.com> (raw)
In-Reply-To: <20080102140228.GA30326@caradoc.them.org>
> > Still, your question still stands, who sets the block? I found
> > inside write_var_or_type the following code:
> >
> > if (block == NULL)
> > block = expression_context_block;
> >
> > Which at first sight would seem reasonable. This code predates me,
> > so I'm not sure of the consequence of removing it. And there might
> > be some other places down the road where we actually do the same.
> > I will investigate more.
Mamia mia, mucho complicacion if you remove this code... The function
relies on the block being set properly to do the lookup. For instance,
just slightly further down in that function, you have the following
code:
nsyms = ada_lookup_symbol_list (encoded_name, block,
VAR_DOMAIN, &syms);
If the block is not set, then the local symbols will not be found.
There may be other places where we have the same issue, I didn't
look further. Sooooo....
> Yes, I agree; the patch is OK. I just wanted to understand the
> difference for Ada.
... Thanks! I checked the patch in.
--
Joel
prev parent reply other threads:[~2008-01-03 4:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-01 13:48 Joel Brobecker
2008-01-02 13:04 ` Daniel Jacobowitz
2008-01-02 13:55 ` Joel Brobecker
2008-01-02 14:08 ` Daniel Jacobowitz
2008-01-03 4:18 ` Joel Brobecker [this message]
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=20080103041814.GF15903@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@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