Probs w/ GDB on SparcCompiler 4.0 binaries

Probs w/ GDB on SparcCompiler 4.0 binaries

Post by Randall Hopp » Thu, 10 Oct 1996 04:00:00



     I've had no luck getting GDB v4.16 to work with SparcCompiler 4.0
binaries.  The debugging symbols are not pulled into the executable when
the original .c files are compiled with SC4.0.  If I compile them with
anything else (e.g. GCC, Centerline), the debugging symbols are pulling
into the the binary (e.g. dump -c output).

     .stabstr:
        <offset>     Name
        ...
        <93>         char:t(0,1)=bsc1;0;8;
        <115>        short:t(0,2)=bs2;0;16;
        <138>        int:t(0,3)=bs4;0;32;
        <159>        long:t(0,4)=bs4;0;32;
        ...

     Can GDB be made to work on SparcCompiler binaries?  Does gdb support
reading debug info by tracing down component object files (like the
SparcWorks de* does), or is there a switch I missed on the compiler or
linker to cause it to generate debug info such that it'll be pulled into
the executable by ld?

--
_____________________________________________________________________________
    Randall Hopper  (AA8VB)   |  Picker International, CT Visualization

            *** WINDOWS, from the folks who brought you EDLIN ***
_____________________________________________________________________________