On 06/11/09 16:28, C. Bergstr?m wrote:
> Lori Alt wrote:
>> I've run into this same issue recently and I'm working with someone 
>> in the Sun Studio group to help me figure it out, but so far, no luck.
>> I thought that the only thing I needed to do was to make sure that 
>> the compiler and the linker were being executed with the -g option, 
>> but I've done that and I still can't get dbx to recognize the dynamic 
>> libraries has having debugger info.
>>
>> So if I get the answer, I'll post it here.  In the meantime, if 
>> anyone else knows the trick, I'd appreciate learning it.
> Are the binaries still gettting stripped? Run file path/to/libzpool.. 
> It should tell you if it's stripped or not..

In my case, the binaries aren't stripped.  I had checked on that.

But I did get an answer from the Sun Studio project:  the problem I've 
been seeing (which might not be the same problem that  Steve reports, 
but could be)  appears to be a known bug (6823053).  I don't know the 
prospects for a fix, but there's a workaround, which is to modify the 
compiler flags to change this:

-xdebugformat=stabs

to this:

-xdebugformat=dwarf

Also make sure the compiler is called with -g.

This worked for me.  But I have no idea what other effects this change 
may have, so use at your own risk.

Lori


Reply via email to