aboutsummaryrefslogtreecommitdiff
path: root/gdb/osfsolib.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1994-07-06 08:01:52 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1994-07-06 08:01:52 +0000
commitcef0333efd6b51706779c97e3646d542f3b0e381 (patch)
treecaa3ce788e14d1930f7ef456a12d79438c0e98eb /gdb/osfsolib.c
parent5fb54939a935432613fbe6d4de424ab168d6ca4d (diff)
downloadfsf-binutils-gdb-cef0333efd6b51706779c97e3646d542f3b0e381.zip
fsf-binutils-gdb-cef0333efd6b51706779c97e3646d542f3b0e381.tar.gz
fsf-binutils-gdb-cef0333efd6b51706779c97e3646d542f3b0e381.tar.bz2
* 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.
Diffstat (limited to 'gdb/osfsolib.c')
-rw-r--r--gdb/osfsolib.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c
index 843448a..054d584 100644
--- a/gdb/osfsolib.c
+++ b/gdb/osfsolib.c
@@ -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;
}