diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 14 | ||||
-rw-r--r-- | gdb/c-lang.c | 2 | ||||
-rw-r--r-- | gdb/elfread.c | 7 | ||||
-rw-r--r-- | gdb/nlmread.c | 7 | ||||
-rw-r--r-- | gdb/os9kread.c | 8 | ||||
-rw-r--r-- | gdb/osfsolib.c | 10 | ||||
-rw-r--r-- | gdb/procfs.c | 10 |
7 files changed, 30 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c3242c..3579b3c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 8b193d3..422bde8 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -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. diff --git a/gdb/elfread.c b/gdb/elfread.c index 48a8182..95c9c0f 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -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. */ diff --git a/gdb/nlmread.c b/gdb/nlmread.c index b0c405e..7ba977a 100644 --- a/gdb/nlmread.c +++ b/gdb/nlmread.c @@ -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. */ diff --git a/gdb/os9kread.c b/gdb/os9kread.c index cf728fe..6c57cee 100644 --- a/gdb/os9kread.c +++ b/gdb/os9kread.c @@ -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); } 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; } diff --git a/gdb/procfs.c b/gdb/procfs.c index f70329a..39b3931 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -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"); |