* dbxread.c (read_ofile_symtab): Remove N_CATCH special case,

since it is no longer used and burns time for every symbol read.
(process_one_symbol):  Treat N_CATCH like default (complain).
This commit is contained in:
John Gilmore 1992-06-24 19:58:57 +00:00
parent 7c2d4011a4
commit fef9f55c2b
2 changed files with 7 additions and 11 deletions

View File

@ -1,3 +1,9 @@
Wed Jun 24 12:53:20 1992 John Gilmore (gnu at cygnus.com)
* dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
since it is no longer used and burns time for every symbol read.
(process_one_symbol): Treat N_CATCH like default (complain).
Wed Jun 24 00:26:56 1992 Stu Grossman (grossman at cygnus.com)
* partial-stab.h (case N_TEXT): Fix fencepost error when

View File

@ -1526,12 +1526,6 @@ read_ofile_symtab (objfile, sym_offset, sym_size, text_offset, text_size,
SWAP_SYMBOL (bufp, abfd);
type = bufp->n_type;
if (type == (unsigned char)N_CATCH)
{
/* N_CATCH is not fixed up by the linker, and unfortunately,
there's no other place to put it in the .stab map. */
bufp->n_value += text_offset - offset;
}
SET_NAMESTRING ();
@ -1689,11 +1683,6 @@ process_one_symbol (type, desc, valu, name, offset, objfile)
new->name = define_symbol (valu, name, desc, type, objfile);
break;
case N_CATCH:
/* Record the address at which this catch takes place. */
define_symbol (valu+offset, name, desc, type, objfile);
break;
case N_LBRAC:
/* This "symbol" just indicates the start of an inner lexical
context within a function. */
@ -1944,6 +1933,7 @@ process_one_symbol (type, desc, valu, name, offset, objfile)
case N_NBBSS:
case N_NBSTS:
case N_NBLCS:
case N_CATCH:
complain (&unknown_symtype_complaint, local_hex_string(type));
if (name)
define_symbol (valu, name, desc, type, objfile);