[KLUG Members] Oh great developers of KLUG.....

Adam Tauno Williams members@kalamazoolinux.org
Tue, 17 Jul 2001 10:01:58 -0400 (EDT)


>>>>What is the most likely cause of the following....
>>>Hard to tell... Add a -g option and send it this way,
>> 
>>"-g"?  Thats not a valid strace or ldd option.
>It's a GCC option.  From gcc(1):
>       -g     Produce debugging information in the operating sys-
>              tem's native format (stabs, COFF, XCOFF, or DWARF).
>              GDB can work with this debugging information. ....

Do I have to do anything besides adding -g?  I put -g in all the calls to g++ in
the makefiles and gdb (via DDD) gives me the following upon openning the program.

(gdb) cd /usr/local/workspace/CORBA-ISAM/sybex/access-demo-3.9.0/data2flat
(gdb) file
/usr/local/workspace/CORBA-ISAM/sybex/access-demo-3.9.0/data2flat/seqdata2flat
(no debugging symbols found)...(gdb) 

And it dies with:
(no debugging symbols found)...(gdb) run file-seq.fdd
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
warning: shared library handler failed to enable breakpoint
[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device]
Program received signal SIGSEGV, Segmentation fault.
0x080506f1 in ?? ()

Systems and Network Administrator
Morrison Industries
1825 Monroe Ave NW.
Grand Rapids, MI. 49505