This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tests for DWARF location lists?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]