[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4611: Format CORE files under 2.1.3 and 2.0.22



Thanks for the patch.  I'm forwarding it to the Debian bug-report
address so whomever takes over the gdb package will see it.  The
package is currently orphaned and is not actively being supported.

David

Erik B. Andersen writes:
> From andersee@et.byu.edu Mon Oct 14 09:51:36 1996
> Message-Id: <m0vCoMJ-000FvLC@Dillweed>
> From: andersee@et.byu.edu (Erik B. Andersen)
> Subject: Re: Format CORE files under 2.1.3 and 2.0.22 (fwd)
> To: david@ods.com
> Date: Mon, 14 Oct 1996 08:51:09 -0600 (MDT)
> X-Mailer: ELM [version 2.4 PL25 PGP2]
> MIME-Version: 1.0
> Content-Type: text/plain; charset=US-ASCII
> Content-Transfer-Encoding: 7bit
> X-Status: 
> 
> Eric W. Biederman wrote:
> >From POPmail Mon Oct 14 07:25:29 1996
> Sender: eric@flinx.home
> To: andersee@et.byu.edu (Erik B. Andersen)
> Subject: Re: Format CORE files under 2.1.3 and 2.0.22
> References: <m0vCYS0-000FvPC@Dillweed>
> Mime-Version: 1.0 (generated by tm-edit 7.78)
> Content-Type: text/plain; charset=US-ASCII
> X-UIDL: 845299011.055
> From: ebiederm@cse.unl.edu (Eric W. Biederman)
> Date: 14 Oct 1996 07:19:45 -0500
> In-Reply-To: andersee@et.byu.edu's message of Sun, 13 Oct 1996 15:51:58 -0600 (MDT)
> Message-ID: <m120f1ivq6.fsf@flinx.home>
> Lines: 58
> X-Mailer: Gnus v5.2.39/Emacs 19.33
> 
> >>>>> "Erik" == Erik B Andersen <andersee@et.byu.edu> writes:
> 
> Erik> I have the exact same problem.  I am using Debian-1.1.11 with all the
> Erik> latest package updates.  I am using kernel 2.0.22.  I submitted a
> Erik> bug report to the Debian bug tracking mailing list, where I describe this
> Erik> problem is GREAT detail ( For my report see
> Erik> http://www.cl.cam.ac.uk:/users/iwj10/debian-bugs/db/4611.html )
> Erik> I have no idea what the problem is, or whether it is kernel related or not,
> Erik> but it certainly makes debugging things a pain.  Any ideas?
> Erik>  -Erik
> 
> Yes, when gdb is compiled it doesn't like to include elf support. :(
> There are some system header files that try do some sophisticate
> detection and do things only when gdb includes it and fails.
> 
> The following patch applied to usr/include/sys/procfs.h fixes it for
> me.  This was inspired by a posting on linux-gcc quite a while ago.
> 
> This is all I know.
> 
> Eric 
> 
> --- procfs.h~	Sat Jun 10 19:26:06 1995
> +++ procfs.h	Tue Jul  9 22:56:09 1996
> @@ -2,30 +2,13 @@
>  #define _SYS_PROCFS_H
>  
>  /* Are we included by gdb/bfd and using the right compiler? */
> -#if (defined(START_INFERIOR_TRAPS_EXPECTED) || \
> -	defined(TRAD_CORE_EXTRA_SIZE_ALLOWED)) && \
> -	defined(__ELF__) && defined(__linux__)
> -
> -/* We test if we have the ELF patches installed. */
> -#include <linux/sys.h>
> -
> -#ifdef sys_quotactl
> +#if defined(__ELF__) && defined(__linux__)
>  
>  /* This is strictly for gdb/bfd only. */
>  #define HAVE_PROCFS
>  
>  /* We just need it for gdb/bfd. */
>  #include <linux/elfcore.h>
> -
> -#else /* sys_quotactl */
> -
> -/* Oops. Just silence it. */
> -#undef HAVE_PROCFS
> -
> -#endif /* sys_quotactl */
> -
> -/* Don't pollute. */
> -#undef sys_quotactl
>  
>  #endif /* __ELF__ && __linux__ */
>  
> 
> 
> 
> 
> -- 
> Erik B. Andersen         Web:    http://www.et.byu.edu/~andersee/ 
> 2485 South State St.     email:  andersee@et.byu.edu
> Springville, Ut 84663    phone:  (801) 489-1231
> --This message was written using 73% post-consumer electrons--
> 


-- 
David Engel                        Optical Data Systems, Inc.
david@ods.com                      1001 E. Arapaho Road
(972) 234-6400                     Richardson, TX  75081

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: