Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@redhat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: dynamic scope from frame, static scope from ???
Date: Sun, 23 Nov 2003 04:14:00 -0000	[thread overview]
Message-ID: <vt28ym7afgv.fsf@zenia.home> (raw)
In-Reply-To: <3FBF84CF.30401@gnu.org>


Andrew Cagney <cagney@gnu.org> writes:
> True.  Per: Can't use [some] macro's in conditional breakpoints
> http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=856
> GDB currently gets this wrong :-(

Yep.  parse_exp_1 should take a sal, not a block, and
expression_context_pc should have been expression_context_sal.  (I've
added a note to the PR.)

> The "frame" gives us a path to this information is when the program is
> running.  I'm asking what should should be used to give us that
> information when the program isn't running?

Actually, now that I look at it, what's wrong with 'struct
symtab_and_line' for a static context?  You can get a block from that
with block_for_pc_sect (sal.pc, sal.section).  (There should be a
function, block_for_sal, which does that.)


      reply	other threads:[~2003-11-23  4:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-22 14:50 Andrew Cagney
2003-11-22 15:07 ` Jim Blandy
2003-11-22 15:46   ` Andrew Cagney
2003-11-23  4:14     ` Jim Blandy [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=vt28ym7afgv.fsf@zenia.home \
    --to=jimb@redhat.com \
    --cc=cagney@gnu.org \
    --cc=gdb@sources.redhat.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