]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
authorJohn Gilmore <gnu@cygnus>
Wed, 24 Jun 1992 19:58:57 +0000 (19:58 +0000)
committerJohn Gilmore <gnu@cygnus>
Wed, 24 Jun 1992 19:58:57 +0000 (19:58 +0000)
since it is no longer used and burns time for every symbol read.
(process_one_symbol):  Treat N_CATCH like default (complain).

gdb/ChangeLog
gdb/dbxread.c

index cdd3bf541ccf95069d716327096805c1ca4f6f56..ba9c1affb5a7c0d34e05b89ac2bccc6bf353162a 100644 (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
index 84e9de871350213043239f189fdb390393932a9b..b0875f202e8853afea0307017a878b5c8b54bcf1 100644 (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);