csmith@mozart.uucp (Chris Smith) (08/04/89)
The problem where Fortran causes gdb to say gdb: Internal error: Unexpected debugging symbol type 't' at symnum -2147269732. is due to Fortran's using N_GSYM for typedefs. Here's a fix, in dbxread.c function read_dbx_symtab, at around line 2307: case 'G': ADD_PSYMBOL_TO_LIST (namestring, p - namestring, VAR_NAMESPACE, LOC_EXTERNAL, global_psymbols, bufp->n_value); continue; + + /* Fortran puts out N_GSYM typedefs. Ignore them here. */ + case 't': + continue; + /* I don't think the default case should happen. A breakpoint here to check would probably be good. */ default: