From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28706 invoked by alias); 4 Aug 2002 18:02:44 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28699 invoked from network); 4 Aug 2002 18:02:42 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 4 Aug 2002 18:02:42 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 9826B3CAD; Sun, 4 Aug 2002 14:02:30 -0400 (EDT) Message-ID: <3D4D6C36.8050407@ges.redhat.com> Date: Sun, 04 Aug 2002 11:02:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020802 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com, Michael Snyder Cc: lha@stacken.kth.se Subject: [Fwd: gcore for netbsd] Content-Type: multipart/mixed; boundary="------------020100090203040506090405" X-SW-Source: 2002-08/txt/msg00082.txt.bz2 This is a multi-part message in MIME format. --------------020100090203040506090405 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 261 Hello, This patch has made me wonder why gcore even includes . Can anyone think of a reason for not simply removing the include? -- I'm also wondering what the function preempt_derive_stack_segment() is for. I can't find any callers. Andrew --------------020100090203040506090405 Content-Type: message/rfc822; name="gcore for netbsd" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gcore for netbsd" Content-length: 3066 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: ac131313@localhost.redhat.com Received: from localhost (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B32183D15 for ; Tue, 16 Jul 2002 09:46:41 -0400 (EDT) Received: from pop.sfbay.redhat.com by localhost with IMAP (fetchmail-5.9.11) for ac131313@localhost (single-drop); Tue, 16 Jul 2002 09:46:41 -0400 (EDT) Received: from ges.redhat.com (cygnus-mx.sfbay.redhat.com [172.16.27.16]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id SAA05957 for ; Mon, 15 Jul 2002 18:35:52 -0700 (PDT) Received: from sources.redhat.com (sources.redhat.com [209.249.29.67]) by ges.redhat.com (8.11.6/8.11.6) with SMTP id g6G1ZqX30373 for ; Mon, 15 Jul 2002 18:35:52 -0700 Received: (qmail 9069 invoked by alias); 16 Jul 2002 01:35:50 -0000 Received: (qmail 9062 invoked from network); 16 Jul 2002 01:35:49 -0000 Received: from unknown (HELO elixir.e.kth.se) (130.237.48.5) by sources.redhat.com with SMTP; 16 Jul 2002 01:35:49 -0000 Received: from sul.e.kth.se (sul.e.kth.se [130.237.48.109]) by elixir.e.kth.se (8.12.3/8.12.3) with ESMTP id g6G1Zlvk522466 for ; Tue, 16 Jul 2002 03:35:48 +0200 (CEST) Received: (from lha@localhost) by sul.e.kth.se (8.11.6/8.9.3) id g6G1Zlr15414; Tue, 16 Jul 2002 03:35:47 +0200 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Delivered-To: mailing list gdb@sources.redhat.com X-Authentication-Warning: sul.e.kth.se: lha set sender to lha@stacken.kth.se using -f To: gdb@sources.redhat.com Subject: gcore for netbsd From: Love Date: 16 Jul 2002 03:35:47 +0200 Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-length: 797 Hi I've added gcore support for netbsd, the core writing support need some more work (like adding more stuff to the elf notes in the netbsd core file) One simple thing you can do for me is to protect the in gcore.c like its done in other files so its possible to include gcore.c on platforms that doesn't have . Love Index: gcore.c =================================================================== RCS file: /cvs/src/src/gdb/gcore.c,v retrieving revision 1.5 diff -u -u -w -r1.5 gcore.c --- gcore.c 12 Apr 2002 23:09:48 -0000 1.5 +++ gcore.c 16 Jul 2002 01:30:03 -0000 @@ -23,7 +23,9 @@ #include "inferior.h" #include "gdbcore.h" #include "elf-bfd.h" +#ifdef HAVE_SYS_PROCFS_H #include +#endif #include "symfile.h" #include "objfiles.h" --------------020100090203040506090405--