From: Daniel Jacobowitz <drow@false.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: jimb@codesourcery.com, rodney.bates@wichita.edu, gdb@sourceware.org
Subject: Re: breakpoint for accessing memory location
Date: Tue, 24 Oct 2006 17:41:00 -0000 [thread overview]
Message-ID: <20061024174056.GA14740@nevyn.them.org> (raw)
In-Reply-To: <E1GcQCq-0003M1-8P@fencepost.gnu.org>
On Tue, Oct 24, 2006 at 01:36:52PM -0400, Eli Zaretskii wrote:
> > Date: Tue, 24 Oct 2006 08:57:09 -0400
> > From: Daniel Jacobowitz <drow@false.org>
> > Cc: Jim Blandy <jimb@codesourcery.com>, rodney.bates@wichita.edu,
> > gdb@sourceware.org
> > >
> > > Does the debug info tell us enough to do that?
> >
> > Sometimes, but not reliably.
>
> If so, I don't think GDB can do better than we do now, since only the
> compiler knows the true scope of a variable. Right?
We can work out the scope from the debug info, in most cases; I was
thinking about the wrong data in my previous message. But it's not
clear what we can _do_ with it.
DWARF-2 represents the PC ranges of lexical blocks at the source level.
You can see exactly where a variable ought to be in scope from that.
But unless you confine yourself to single-stepping, you won't know when
you leave that range. You can't set a breakpoint at the end of it,
because it may contain jumps.
> > Another problem with watchpoints is that we don't support any kind of
> > location lists for local variables
>
> Again, does the debug info include such location lists?
Yes. It may say "0x4-0x12 var in %eax, 0x12-0x40 var in 8(%ebp),
otherwise var has no value".
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-10-24 17:41 UTC|newest]
Thread overview: 51+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-19 20:10 Erik Leunissen
2006-10-19 20:12 ` Daniel Jacobowitz
2006-10-19 20:24 ` Erik Leunissen
2006-10-19 20:25 ` Daniel Jacobowitz
2006-10-19 20:28 ` Erik Leunissen
2006-10-20 6:31 ` Eli Zaretskii
2006-10-20 14:27 ` Daniel Jacobowitz
2006-10-21 13:20 ` [commit] Fix annotations-related index entries (was: breakpoint for accessing memory location) Eli Zaretskii
2006-10-20 16:56 ` breakpoint for accessing memory location Erik Leunissen
2006-10-20 17:39 ` Eli Zaretskii
2006-10-21 12:58 ` Eli Zaretskii
2006-10-21 22:28 ` Erik Leunissen
2006-10-22 4:20 ` Eli Zaretskii
2006-10-22 9:11 ` Erik Leunissen
2006-10-22 9:19 ` Erik Leunissen
2006-10-22 22:16 ` Eli Zaretskii
2006-10-23 7:41 ` Erik Leunissen
2006-10-21 15:06 ` Rodney M. Bates
2006-10-21 15:27 ` Daniel Jacobowitz
2006-10-21 15:29 ` Eli Zaretskii
2006-10-21 15:51 ` Daniel Jacobowitz
2006-10-21 21:26 ` Eli Zaretskii
2006-10-21 22:32 ` Daniel Jacobowitz
2006-10-22 4:18 ` Eli Zaretskii
2006-10-22 4:22 ` Daniel Jacobowitz
2006-10-22 12:18 ` Robert Dewar
2006-10-22 22:18 ` Eli Zaretskii
2006-10-22 22:21 ` Daniel Jacobowitz
2006-10-22 22:29 ` Eli Zaretskii
2006-10-22 22:49 ` Robert Dewar
2006-10-22 23:18 ` Daniel Jacobowitz
2006-10-23 2:03 ` Robert Dewar
2006-10-23 4:11 ` Eli Zaretskii
2006-10-23 12:36 ` Daniel Jacobowitz
2006-10-22 22:48 ` Robert Dewar
2006-10-22 22:51 ` Eli Zaretskii
2006-10-22 22:55 ` Robert Dewar
2006-10-23 4:10 ` Eli Zaretskii
2006-10-22 20:40 ` Mark Kettenis
2006-10-21 18:07 ` Rodney M. Bates
2006-10-21 21:42 ` Eli Zaretskii
2006-10-21 18:55 ` Rodney M. Bates
2006-10-21 21:53 ` Eli Zaretskii
2006-10-22 15:20 ` Rodney M. Bates
2006-10-22 17:24 ` Daniel Jacobowitz
2006-10-22 22:22 ` Eli Zaretskii
2006-10-23 22:02 ` Jim Blandy
2006-10-24 4:32 ` Eli Zaretskii
2006-10-24 12:57 ` Daniel Jacobowitz
2006-10-24 17:37 ` Eli Zaretskii
2006-10-24 17:41 ` Daniel Jacobowitz [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=20061024174056.GA14740@nevyn.them.org \
--to=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb@sourceware.org \
--cc=jimb@codesourcery.com \
--cc=rodney.bates@wichita.edu \
/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