[2.3 BRANCH]: gstabs issue

Andrew Haley aph at redhat.com
Mon Aug 6 09:27:23 PDT 2012

On 08/06/2012 05:16 PM, Andrew Hughes wrote:
> ----- Original Message -----
>> On 08/06/2012 02:42 PM, Andrew Hughes wrote:
>>> There was a regression with DEBUG_BINARIES which resulted in some
>>> architectures
>>> (x86, SPARC, etc.) producing STABS debug information rather than
>>> DWARF.
>>> The fix for this is now in OpenJDK8 and IcedTea7 HEAD:
>>> http://hg.openjdk.java.net/icedtea/jdk7/hotspot/rev/c5430c659d54
>>> Ok to backport this to the 2.3 forest?
>> It's very hard to understand what is supposed to be happening.  I
>> think it means that ia64, amd64, arm, ppc get DWARF debug info, but
>> x86/32 and others get STABS.  But this makes no sense at all: STABS
>> is not appropriate for x86/32 or any other Linux target AFAIAA.
> No, that's what's happening now without this patch.  This patch
> corrects the behaviour so that DEBUG_BINARIES again takes precedence
> and applies "-g" in all cases (no "-gstabs") whatever the
> architecture or build type (fastdebug/debug/product).  It's hard to
> see because the patch is moving the previous lines inside an else
> block, which is only evaluated if DEBUG_BINARIES is not equal to
> true.

OK, so it's still wrong if DEBUG_BINARIES is off, but it's only wrong
on hosts other than ia64, amd64, arm and ppc.

> http://mail.openjdk.java.net/pipermail/hotspot-dev/2012-July/006247.html

I see that Coleen says:

> I think we can kill two birds with one stone by just removing
> DEBUG_BINARIES and using dwarf for linux 32.

but Daniel Daugherty disagrees.  I don't really understand the size
argument, given that builds are now done with separate debuginfo.
Daniel says

> Getting buy-off on yet another size increase is not a short process.

but there's no hint about whether he intends to ask for any buy-off.

I don't even know why DEBUG_BINARIES exists any more: separate
debuginfo removes the need for it.


More information about the distro-pkg-dev mailing list