aboutsummaryrefslogtreecommitdiff
path: root/gdb/dbxread.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-06-24 19:58:57 +0000
committerJohn Gilmore <gnu@cygnus>1992-06-24 19:58:57 +0000
commitfef9f55c2b2afb982e504f146803af1eb6917b3e (patch)
tree7b46c253f7d779dc79b33ec5a24e8f0a068cf40b /gdb/dbxread.c
parent7c2d4011a40eb6ff029b99e4a7871c26c3b1f7b4 (diff)
downloadgdb-fef9f55c2b2afb982e504f146803af1eb6917b3e.zip
gdb-fef9f55c2b2afb982e504f146803af1eb6917b3e.tar.gz
gdb-fef9f55c2b2afb982e504f146803af1eb6917b3e.tar.bz2
* 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).
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r--gdb/dbxread.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c
index 84e9de8..b0875f2 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);