home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1307 / gdb-x386.04
Encoding:
Text File  |  1990-12-28  |  1.3 KB  |  52 lines

  1. *** dbxread.old    Sat May  5 15:44:39 1990
  2. --- dbxread.c    Thu May 10 14:19:08 1990
  3. ***************
  4. *** 462,467 ****
  5. --- 462,470 ----
  6.   /* Count symbols as they are processed, for error messages.  */
  7.   
  8.   static int symnum;
  9. + #ifdef M_XENIX
  10. + static long lsym_count = 0;
  11. + #endif /* M_XENIX */
  12.   
  13.   /* Vector of types defined so far, indexed by their dbx type numbers.
  14.      (In newer sun systems, dbx uses a pair of numbers in parens,
  15. ***************
  16. *** 1939,1945 ****
  17.   {
  18.     if (symbuf_idx == symbuf_end)
  19.       fill_symbuf ();
  20. !   symnum++;
  21.     return symbuf[symbuf_idx++].n_un.n_strx + stringtab_global;
  22.   }
  23.   
  24. --- 1942,1948 ----
  25.   {
  26.     if (symbuf_idx == symbuf_end)
  27.       fill_symbuf ();
  28. !   symnum++;  lsym_count--;
  29.     return symbuf[symbuf_idx++].n_un.n_strx + stringtab_global;
  30.   }
  31.   
  32. ***************
  33. *** 2078,2084 ****
  34.   #endif
  35.   
  36.   #ifdef M_XENIX
  37. -   long lsym_count = 0;
  38.     long flsym_count = 0;
  39.     long file_string_base = 0;
  40.     long stringtab_offset = 0;
  41. --- 2081,2086 ----
  42. ***************
  43. *** 2142,2147 ****
  44. --- 2144,2150 ----
  45.   #ifdef M_XENIX
  46.     init_fileinfo_processing();   /* start processing the list of files */
  47.     nlistlen += 10;         /* force the hack code to terminate the loop */
  48. +   lsym_count = 0;
  49.   #endif /* M_XENIX */
  50.   
  51.     for (symnum = 0; symnum < nlistlen; symnum++)
  52.