]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
authorPeter Schauer <Peter.Schauer@mytum.de>
Wed, 6 Jul 1994 08:01:52 +0000 (08:01 +0000)
committerPeter Schauer <Peter.Schauer@mytum.de>
Wed, 6 Jul 1994 08:01:52 +0000 (08:01 +0000)
Move "no debugging symbols found" test to symfile.c.
* symfile.c (syms_from_objfile, reread_symbols):  Add
"no debugging symbols found" test.
* coffread.c (init_stringtab):  Handle stripped files with a
stringtab offset of zero gracefully.
* osfsolib.c (solib_create_inferior_hook):  Use DYNAMIC flag from
BFD instead of stop_pc heuristic to determine if it is a dynamically
linked object file.
* procfs.c (wait_fd):  Handle ENOENT error return from PIOCWSTOP
ioctl, it indicates that the process has exited.

gdb/ChangeLog
gdb/c-lang.c
gdb/elfread.c
gdb/nlmread.c
gdb/os9kread.c
gdb/osfsolib.c
gdb/procfs.c

index 0c3242cf5c2c622e38eecada8ce9e22cd1c21230..3579b3c09fc4a78e4340d351732795ef25eafc83 100644 (file)
@@ -1,3 +1,17 @@
+Wed Jul  6 00:48:57 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
+
+       * dbxread.c, elfread.c, mipsread.c, nlmread.c, os9kread.c:
+       Move "no debugging symbols found" test to symfile.c.
+       * symfile.c (syms_from_objfile, reread_symbols):  Add
+       "no debugging symbols found" test.
+       * coffread.c (init_stringtab):  Handle stripped files with a
+       stringtab offset of zero gracefully.
+       * osfsolib.c (solib_create_inferior_hook):  Use DYNAMIC flag from
+       BFD instead of stop_pc heuristic to determine if it is a dynamically
+       linked object file.
+       * procfs.c (wait_fd):  Handle ENOENT error return from PIOCWSTOP
+       ioctl, it indicates that the process has exited.
+
 Mon Jul  4 19:28:56 1994  Jeff Law  (law@snake.cs.utah.edu)
 
        * hppa-tdep.c (read_unwind_info): ELF unwind information is in the
index 8b193d3b1ae9731299618c48e771d66732bfe5b9..422bde8f34db95b9b463d7b2b0092983eb305d0a 100644 (file)
@@ -1,5 +1,5 @@
 /* C language support routines for GDB, the GNU debugger.
-   Copyright 1992, 1993 Free Software Foundation, Inc.
+   Copyright 1992, 1993, 1994 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
index 48a8182ee2b2c31cb695cd68fc68610f54b5512e..95c9c0ff903ec39fac2ce97fed7eb79b00d77b31 100644 (file)
@@ -611,13 +611,6 @@ elf_symfile_read (objfile, section_offsets, mainline)
                                  section_offsets);
     }
 
-  if (!have_partial_symbols ())
-    {
-      wrap_here ("");
-      printf_filtered ("(no debugging symbols found)...");
-      wrap_here ("");
-    }
-
   /* Install any minimal symbols that have been collected as the current
      minimal symbols for this objfile. */
 
index b0c405e03510d2fae4eda427c096094a33ae8f08..7ba977a87cbb6850b729fc01d63c1309b8ebf3ae 100644 (file)
@@ -236,13 +236,6 @@ nlm_symfile_read (objfile, section_offsets, mainline)
   /* FIXME:  We could locate and read the optional native debugging format
      here and add the symbols to the minimal symbol table. */
 
-  if (!have_partial_symbols ())
-    {
-      wrap_here ("");
-      printf_filtered ("(no debugging symbols found)...");
-      wrap_here ("");
-    }
-
   /* Install any minimal symbols that have been collected as the current
      minimal symbols for this objfile. */
 
index cf728fefb72c8af57ec3d10c82aa7d4a4f435a29..6c57cee9eb97c962669f0342438a6d42702fb456 100644 (file)
@@ -1,5 +1,5 @@
 /* Read os9/os9k symbol tables and convert to internal format, for GDB.
-   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993
+   Copyright 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994
    Free Software Foundation, Inc.
 
 This file is part of GDB.
@@ -355,12 +355,6 @@ os9k_symfile_read (objfile, section_offsets, mainline)
                   bfd_section_vma  (sym_bfd, DBX_TEXT_SECT (objfile)),
                   bfd_section_size (sym_bfd, DBX_TEXT_SECT (objfile)));
 
-  if (!have_partial_symbols ()) {
-    wrap_here ("");
-    printf_filtered ("(no debugging symbols found)...");
-    wrap_here ("");
-  }
-
   do_cleanups (back_to);
 }
 
index 843448a681b2535ef9a7258edb865e6b81bd0870..054d5841bf74a64c7b0af190fcb4ac66daadc427 100644 (file)
@@ -1,5 +1,5 @@
 /* Handle OSF/1 shared libraries for GDB, the GNU Debugger.
-   Copyright 1993 Free Software Foundation, Inc.
+   Copyright 1993, 1994 Free Software Foundation, Inc.
    
 This file is part of GDB.
 
@@ -732,7 +732,9 @@ solib_create_inferior_hook()
 
   /* Nothing to do for statically bound executables.  */
 
-  if (symfile_objfile == 0 || symfile_objfile->ei.entry_file_lowpc == stop_pc)
+  if (symfile_objfile == NULL
+      || symfile_objfile->obfd == NULL
+      || ((bfd_get_file_flags (symfile_objfile->obfd) & DYNAMIC) == 0))
     return;
 
   /* Now run the target.  It will eventually get a SIGTRAP, at
@@ -754,8 +756,8 @@ solib_create_inferior_hook()
       But we are stopped in the runtime loader and we do not have symbols
       for the runtime loader. So heuristic_proc_start will be called
       and will put out an annoying warning.
-      Resetting stop_soon_quietly after symbol loading suppresses
-      the warning.  */
+      Delaying the resetting of stop_soon_quietly until after symbol loading
+      suppresses the warning.  */
   solib_add ((char *) 0, 0, (struct target_ops *) 0);
   stop_soon_quietly = 0;
 }
index f70329a8c8787d50df12f8f54d5a93983456cc9d..39b393117d1f65536a317857a91c8dad9f6820b7 100644 (file)
@@ -1,5 +1,5 @@
 /* Machine independent support for SVR4 /proc (process file system) for GDB.
-   Copyright 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
    Written by Fred Fish at Cygnus Support.
 
 This file is part of GDB.
@@ -582,7 +582,13 @@ wait_fd ()
 
   while (ioctl (pi->fd, PIOCWSTOP, &pi->prstatus) < 0)
     {
-      if (errno != EINTR)
+      if (errno == ENOENT)
+       {
+         /* Process exited.  */
+         pi->prstatus.pr_flags = 0;
+         break;
+       }
+      else if (errno != EINTR)
        {
          print_sys_errmsg (pi->pathname, errno);
          error ("PIOCWSTOP failed");