This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] sol-thread.c: Get rid of bogus GDB warning
- To: msnyder at redhat dot com (Michael Snyder)
- Subject: [PATCH] sol-thread.c: Get rid of bogus GDB warning
- From: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- Date: Thu, 28 Sep 2000 9:55:40 MET DST
- Cc: gdb-patches at sourceware dot cygnus dot com
Committed.
> Approved, please check it in.
>
> Peter.Schauer wrote:
> >
> > With a current CVS GDB I get:
> >
> > pes@milch_2016$ cd gdb/testsuite/gdb.base
> > pes@milch_2017$ ../../gdb
> > GNU gdb 5.0
> > Copyright 2000 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you are
> > welcome to change it and/or distribute copies of it under certain conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB. Type "show warranty" for details.
> > This GDB was configured as "sparc-sun-solaris2.7".
> > (gdb) symbol-file break
> > Reading symbols from break...done.
> > warning: sol_thread_new_objfile: td_ta_new: generic error.
> >
> > I consider this warning bogus, here is a fix:
> >
> > * sol-thread.c (ps_pdmodel): Return PR_MODEL_UNKNOWN instead of
> > PS_ERR if exec_bfd is not yet open.
> >
--
Peter Schauer pes@regent.e-technik.tu-muenchen.de