This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: tests for DWARF location lists?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Carl Burch <cdb at cup dot hp dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 23 Oct 2006 10:35:50 -0400
- Subject: Re: tests for DWARF location lists?
- References: <200610222358.QAA06106@hpadl693.cup.hp.com>
On Sun, Oct 22, 2006 at 04:58:06PM -0700, Carl Burch wrote:
> I'm Carl Burch, with the WDB team at HP. We're looking at importing the
> FSF code to read DWARF location lists, but searching the recent releases I
> couldn't find any tests that exercise -O explicitly. Do you run a full pass
> at -O with gcc to exercise the location list support? If not and we develop
> some new tests, would you be interested in our contributing them (e.g, via
> Steve Ellcey)?
Our testsuite would simply not work with optimization enabled; it has a
lot of things like single stepping over assignments whose results are
eventually discarded. When someone wants to test with a compiler which
does slightly more optimization in its lowest optimization mode, we
adjust the tests, but that only happens very slowly.
Certainly we'd be interested in new tests, especially for any problems
you find.
An interesting question is which sort of tests would be better: canned
handwritten debug info, for gdb.dwarf2/, or more tests which are safe
to run with optimization enabled. I think more tests for optimized
debugging would be valuable, although making them pass on a lot of
targets is likely to be a painful process for us :-(
--
Daniel Jacobowitz
CodeSourcery