From owner-freebsd-current Mon Aug 24 09:12:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19405 for freebsd-current-outgoing; Mon, 24 Aug 1998 09:12:08 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from goliath.camtech.net.au (goliath.camtech.net.au [203.5.73.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA19261 for ; Mon, 24 Aug 1998 09:11:59 -0700 (PDT) (envelope-from thyerm@camtech.net.au) Received: from camtech.net.au (dialup-ad-14-100.camtech.net.au [203.55.242.228]) by goliath.camtech.net.au (8.8.5/8.8.2) with ESMTP id BAA01707; Tue, 25 Aug 1998 01:40:21 +0930 (CST) Message-ID: <35E18FF5.B7FADA7B@camtech.net.au> Date: Tue, 25 Aug 1998 01:38:21 +0930 From: Matthew Thyer X-Mailer: Mozilla 4.5b1 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Wolfram Schneider CC: current@FreeBSD.ORG Subject: Re: file segment sizes of a core dump References: <199808231906.VAA04727@campa.panke.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Why require an option ? Why not make size do what you want automatically when it detects that you are running it on a core file ? Possibly an informational message should be printed to stderr something like "sh.core is a core file" Wolfram Schneider wrote: > > I added an option to size(1) which print the > file segment sizes of a core dump. > > For example: > > $ ./size /bin/sh > text data bss dec hex > 294912 12288 35656 342856 53b48 > > $ ./size -c sh.core > text data bss dec hex > 294912 69632 131072 495616 79000 > > If nobody objects I will commit the change. [snip] > -- > Wolfram Schneider http://www.freebsd.org/~w/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- /=====================================================================\ |Work: Matthew.Thyer@dsto.defence.gov.au | Home: thyerm@camtech.net.au| \=====================================================================/ "If it is true that our Universe has a zero net value for all conserved quantities, then it may simply be a fluctuation of the vacuum of some larger space in which our Universe is imbedded. In answer to the question of why it happened, I offer the modest proposal that our Universe is simply one of those things which happen from time to time." E. P. Tryon from "Nature" Vol.246 Dec.14, 1973 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message