From: Daniel Jacobowitz <drow@false.org>
To: David Lecomber <david@streamline-computing.com>
Cc: patches <gdb-patches@sources.redhat.com>
Subject: Re: RFC: The Constructor Breakpoint Issue
Date: Fri, 15 Oct 2004 14:52:00 -0000 [thread overview]
Message-ID: <20041015145144.GB25188@nevyn.them.org> (raw)
In-Reply-To: <1097847699.1773.81.camel@localhost.localdomain>
On Fri, Oct 15, 2004 at 02:41:39PM +0100, David Lecomber wrote:
> Morning all,
>
> I have reformatted this so it actually compiles - I hope...
>
> Unfortunately this patch busts a lot of test cases (about 30..). I
> have discovered that it is being over-zealous in applying breakpoints
> and need an expert to suggest solutions.
>
> The first broken example is gdb.base/display.c - there we have a for
> loop. So, first line of the for loop (display.c:14) is at PC xxxxxx,
> and also at xxxxxx + some no. which presumably is where the increment
> part of the for loop occurs. Do we want to get both these addresses for
> breakpoints, or not.. because it happens..
>
> I see the intel compiler sets the default is_stmt field to zero, and
> never does anything else with it, and the GNU compilers set it to 1.
> However, dwarf2read ignores this info anyway.
Yes; I've been thinking on and off about fixing this for the GNU
compilers.
> I cannot see anything in the dwarf2 line info that enables us to
> distinguish between the two cases - those where the lines are not really
> duplicate, and those that are. I think everyone would find fixing this
> issue important..
>
> Opinions??
You can't tell from the line table. You can tell if you have both a
line table and a .debug_info section; in the case that is interesting
to you, the two PCs will be in different DW_TAG_subprogram trees.
Given the order in which we parse things I'm not sure if you'll be able
to check that easily.
I don't much like the idea of your hack. However, since no one has
had the time for a thorough fix _still_, if you can get it to work, it
may be a good idea.
I haven't looked at your implementation yet, though.
--
Daniel Jacobowitz
next prev parent reply other threads:[~2004-10-15 14:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 0:30 David Lecomber
2004-10-15 13:34 ` David Lecomber
2004-10-15 14:52 ` Daniel Jacobowitz [this message]
2004-10-20 13:12 ` David Lecomber
2004-10-20 16:02 ` Jim Blandy
2004-10-20 16:04 ` Daniel Jacobowitz
2004-10-20 18:24 ` Jim Blandy
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=20041015145144.GB25188@nevyn.them.org \
--to=drow@false.org \
--cc=david@streamline-computing.com \
--cc=gdb-patches@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