* 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.
This commit is contained in:
parent
5fb54939a9
commit
cef0333efd
7 changed files with 30 additions and 28 deletions
|
@ -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)
|
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
|
* hppa-tdep.c (read_unwind_info): ELF unwind information is in the
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* C language support routines for GDB, the GNU debugger.
|
/* 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.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
|
|
@ -611,13 +611,6 @@ elf_symfile_read (objfile, section_offsets, mainline)
|
||||||
section_offsets);
|
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
|
/* Install any minimal symbols that have been collected as the current
|
||||||
minimal symbols for this objfile. */
|
minimal symbols for this objfile. */
|
||||||
|
|
||||||
|
|
|
@ -236,13 +236,6 @@ nlm_symfile_read (objfile, section_offsets, mainline)
|
||||||
/* FIXME: We could locate and read the optional native debugging format
|
/* FIXME: We could locate and read the optional native debugging format
|
||||||
here and add the symbols to the minimal symbol table. */
|
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
|
/* Install any minimal symbols that have been collected as the current
|
||||||
minimal symbols for this objfile. */
|
minimal symbols for this objfile. */
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Read os9/os9k symbol tables and convert to internal format, for GDB.
|
/* 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.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
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_vma (sym_bfd, DBX_TEXT_SECT (objfile)),
|
||||||
bfd_section_size (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);
|
do_cleanups (back_to);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* Handle OSF/1 shared libraries for GDB, the GNU Debugger.
|
/* 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.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -732,7 +732,9 @@ solib_create_inferior_hook()
|
||||||
|
|
||||||
/* Nothing to do for statically bound executables. */
|
/* 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;
|
return;
|
||||||
|
|
||||||
/* Now run the target. It will eventually get a SIGTRAP, at
|
/* 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
|
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
|
for the runtime loader. So heuristic_proc_start will be called
|
||||||
and will put out an annoying warning.
|
and will put out an annoying warning.
|
||||||
Resetting stop_soon_quietly after symbol loading suppresses
|
Delaying the resetting of stop_soon_quietly until after symbol loading
|
||||||
the warning. */
|
suppresses the warning. */
|
||||||
solib_add ((char *) 0, 0, (struct target_ops *) 0);
|
solib_add ((char *) 0, 0, (struct target_ops *) 0);
|
||||||
stop_soon_quietly = 0;
|
stop_soon_quietly = 0;
|
||||||
}
|
}
|
||||||
|
|
10
gdb/procfs.c
10
gdb/procfs.c
|
@ -1,5 +1,5 @@
|
||||||
/* Machine independent support for SVR4 /proc (process file system) for GDB.
|
/* 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.
|
Written by Fred Fish at Cygnus Support.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
@ -582,7 +582,13 @@ wait_fd ()
|
||||||
|
|
||||||
while (ioctl (pi->fd, PIOCWSTOP, &pi->prstatus) < 0)
|
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);
|
print_sys_errmsg (pi->pathname, errno);
|
||||||
error ("PIOCWSTOP failed");
|
error ("PIOCWSTOP failed");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue