]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* Makefile.in (CC-LD): Rename to CC_LD, so MPW xform works.
authorStan Shebs <shebs@codesourcery.com>
Thu, 19 Oct 1995 19:54:44 +0000 (19:54 +0000)
committerStan Shebs <shebs@codesourcery.com>
Thu, 19 Oct 1995 19:54:44 +0000 (19:54 +0000)
(MMALLOC_SRC): Define.
(MMALLOC_CFLAGS): Use.
(ser-mac.o): Add rule.
* dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET
  with SEEK_SET in all calls to bfd_seek.
* scm-tags.h (scm_tags): Remove excess comma.

gdb/ChangeLog
gdb/dwarfread.c
gdb/scm-tags.h
gdb/somread.c
gdb/ultra3-nat.c
gdb/xcoffread.c

index 950073d703c918b0019e1999b293b41b944c98f3..038b39ed95a492a2703cf567bf08bbb50fcb1713 100644 (file)
@@ -1,5 +1,13 @@
 Thu Oct 19 12:15:37 1995  Stan Shebs  <shebs@andros.cygnus.com>
 
+       * Makefile.in (CC-LD): Rename to CC_LD, so MPW xform works.
+       (MMALLOC_SRC): Define.
+       (MMALLOC_CFLAGS): Use.
+       (ser-mac.o): Add rule.
+       * dwarfread.c, somread.c, ultra3-nat.c, xcoffread.c: Replace L_SET
+       with SEEK_SET in all calls to bfd_seek.
+       * scm-tags.h (scm_tags): Remove excess comma.
+
        * mpw-config.in: Adapt to work with autoconf'ed configury;
        build config.h, add empty definitions to mk.tmp.
        (powerpc-apple-macos): Make it work.
index ea401963057db98c697cb495fb31068d7c6f79d7..bd92ad15be4a2533fc2bc8ea7ea550b0bd9e73ab 100644 (file)
@@ -57,11 +57,6 @@ other things to work on, if you get bored. :-)
 #include <sys/file.h>
 #endif
 
-/* FIXME -- convert this to SEEK_SET a la POSIX, move to config files.  */
-#ifndef L_SET
-#define L_SET 0
-#endif
-
 /* Some macros to provide DIE info for complaints. */
 
 #define DIE_ID (curdie!=NULL ? curdie->die_ref : 0)
@@ -731,7 +726,7 @@ dwarf_build_psymtabs (objfile, section_offsets, mainline, dbfoff, dbfsize,
   dbsize = dbfsize;
   dbbase = xmalloc (dbsize);
   dbroff = 0;
-  if ((bfd_seek (abfd, dbfoff, L_SET) != 0) ||
+  if ((bfd_seek (abfd, dbfoff, SEEK_SET) != 0) ||
       (bfd_read (dbbase, dbsize, 1, abfd) != dbsize))
     {
       free (dbbase);
@@ -2296,7 +2291,7 @@ read_ofile_symtab (pst)
   foffset = DBFOFF(pst) + dbroff;
   base_section_offsets = pst->section_offsets;
   baseaddr = ANOFFSET (pst->section_offsets, 0);
-  if (bfd_seek (abfd, foffset, L_SET) ||
+  if (bfd_seek (abfd, foffset, SEEK_SET) ||
       (bfd_read (dbbase, dbsize, 1, abfd) != dbsize))
     {
       free (dbbase);
@@ -2312,7 +2307,7 @@ read_ofile_symtab (pst)
   lnbase = NULL;
   if (LNFOFF (pst))
     {
-      if (bfd_seek (abfd, LNFOFF (pst), L_SET) ||
+      if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) ||
          (bfd_read ((PTR) lnsizedata, sizeof (lnsizedata), 1, abfd) !=
           sizeof (lnsizedata)))
        {
@@ -2321,7 +2316,7 @@ read_ofile_symtab (pst)
       lnsize = target_to_host (lnsizedata, SIZEOF_LINETBL_LENGTH,
                               GET_UNSIGNED, pst -> objfile);
       lnbase = xmalloc (lnsize);
-      if (bfd_seek (abfd, LNFOFF (pst), L_SET) ||
+      if (bfd_seek (abfd, LNFOFF (pst), SEEK_SET) ||
          (bfd_read (lnbase, lnsize, 1, abfd) != lnsize))
        {
          free (lnbase);
index 27fc34e4218dc1e95e560bf6721f49f74757feb0..a3b736b59daa1ad76b239cb83a3bd4ce73f9682d 100644 (file)
@@ -210,7 +210,7 @@ typedef long SCM;
 
 enum scm_tags
 {
-  scm_tc8_char = 0xf4,
+  scm_tc8_char = 0xf4
 };
 
 #define SCM_ITAG8(X)           ((int)(X) & 0xff)
index 1837da828254d3b9b4ea5e4a9744216e4a79a6b3..522b6b509103774a7892d778a1db64294eadffc2 100644 (file)
@@ -112,13 +112,13 @@ som_symtab_read (abfd, objfile, section_offsets)
   number_of_symbols = bfd_get_symcount (abfd);
 
   buf = alloca (symsize * number_of_symbols);
-  bfd_seek (abfd, obj_som_sym_filepos (abfd), L_SET);
+  bfd_seek (abfd, obj_som_sym_filepos (abfd), SEEK_SET);
   val = bfd_read (buf, symsize * number_of_symbols, 1, abfd);
   if (val != symsize * number_of_symbols)
     error ("Couldn't read symbol dictionary!");
 
   stringtab = alloca (obj_som_stringtab_size (abfd));
-  bfd_seek (abfd, obj_som_str_filepos (abfd), L_SET);
+  bfd_seek (abfd, obj_som_str_filepos (abfd), SEEK_SET);
   val = bfd_read (stringtab, obj_som_stringtab_size (abfd), 1, abfd);
   if (val != obj_som_stringtab_size (abfd))
     error ("Can't read in HP string table.");
index ddf02ddca866aaac745ad57ac112fd124f424497..d63614b0113b8faf263623edd589a659607a4734 100644 (file)
@@ -250,7 +250,7 @@ fetch_core_registers ()
 
   for (regno = 0 ; regno < NUM_REGS; regno++) {
     if (!CANNOT_FETCH_REGISTER(regno)) {
-      val = bfd_seek (core_bfd, (file_ptr) register_addr (regno, 0), L_SET);
+      val = bfd_seek (core_bfd, (file_ptr) register_addr (regno, 0), SEEK_SET);
       if (val < 0 || (val = bfd_read (buf, sizeof buf, 1, core_bfd)) < 0) {
         char * buffer = (char *) alloca (strlen (reg_names[regno]) + 35);
         strcpy (buffer, "Reading core register ");
index b8c5ff1c48197c8c4b0348dc4fc758f0d8338e49..ce36c9517a154b046537a4b145880c083da39cbe 100644 (file)
@@ -1882,7 +1882,7 @@ init_stringtab (abfd, offset, objfile)
 
   ((struct coff_symfile_info *)objfile->sym_private)->strtbl = NULL;
 
-  if (bfd_seek (abfd, offset, L_SET) < 0)
+  if (bfd_seek (abfd, offset, SEEK_SET) < 0)
     error ("cannot seek to string table in %s: %s",
           bfd_get_filename (abfd), bfd_errmsg (bfd_get_error ()));
 
@@ -2648,7 +2648,7 @@ xcoff_initial_scan (objfile, section_offsets, mainline)
 
   /* Read the symbols.  We keep them in core because we will want to
      access them randomly in read_symbol*.  */
-  val = bfd_seek (abfd, symtab_offset, L_SET);
+  val = bfd_seek (abfd, symtab_offset, SEEK_SET);
   if (val < 0)
     error ("Error reading symbols from %s: %s",
           name, bfd_errmsg (bfd_get_error ()));