[gnu.gdb.bug] GDB 3.2 problem with sun4-os4

wiener@stout.UCAR.EDU (Gerry Wiener) (07/16/89)

I get the following error when using gdb on a somewhat substantial program:

hail:gerry:2>/usr/local/src/dist-gdb/gdb ialsv
GDB 3.2, Copyright (C) 1988 Free Software Foundation, Inc.
There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "info copying" to see the conditions.
Reading symbol data from /home/tdwr/int1.05/integration/ialsv...gdb: Internal error: Unexpected debugging symbol type 't' at symnum 6909556.

The program was compiled using cc.  Gdb was compiled using cc.  (The
same error appears when gdb is compiled using gcc.)

randy@ai.mit.edu (Randall Smith) (07/17/89)

> I get the following error when using gdb on a somewhat substantial program:
> 
> hail:gerry:2>/usr/local/src/dist-gdb/gdb ialsv
> GDB 3.2, Copyright (C) 1988 Free Software Foundation, Inc.
> There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details.
> GDB is free software and you are welcome to distribute copies of it
>  under certain conditions; type "info copying" to see the conditions.
> Reading symbol data from /home/tdwr/int1.05/integration/ialsv...gdb: Internal error: Unexpected debugging symbol type 't' at symnum 6909556.
> 
> The program was compiled using cc.  Gdb was compiled using cc.  (The
> same error appears when gdb is compiled using gcc.)

    Did you use the -Bstatic flag to cc?  Sun OS 4 supports shared
  libraries which GDB does not support, and sun makes their use the
  default.  To use GDB under Sun OS 4 you need to turn off the use of
  shared libraries by giving the -Bstatic flag to the loading pass of
  cc when compiling the program on which gdb will run.  

    If anyone would like to implement support for Sun shared libraries
  in a clean way (ie. that would make it easy for GDB to use the same
  code for other, different, implementations of shared libraries), we
  would probably be willing to merge the patches into the GDB
  distribution. 

						-- Randy

wiener@stout.UCAR.EDU (Gerry Wiener) (07/17/89)

I think the reason I'm getting the error message

 Reading symbol data from /home/tdwr/int1.05/integration/ialsv...gdb: Internal error: Unexpected debugging symbol type 't' at symnum 6909556.

is that the program consists of both c and fortran sources.  Each time
I invoked gdb on similar programs, I get the same error message.
The message disappears on pure c programs.  I assume gdb does not
currently support fortran programs.  

	gerry wiener