From fef9f55c2b2afb982e504f146803af1eb6917b3e Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 24 Jun 1992 19:58:57 +0000 Subject: [PATCH] * 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). --- gdb/ChangeLog | 6 ++++++ gdb/dbxread.c | 12 +----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cdd3bf541cc..ba9c1affb5a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 84e9de87135..b0875f202e8 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -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); -- 2.30.2