From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107419 invoked by alias); 12 Sep 2018 22:38:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 107410 invoked by uid 89); 12 Sep 2018 22:38:38 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:734, HContent-Transfer-Encoding:8bit X-HELO: mail.baldwin.cx Received: from bigwig.baldwin.cx (HELO mail.baldwin.cx) (96.47.65.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Sep 2018 22:38:36 +0000 Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id AF59D10AFD2; Wed, 12 Sep 2018 18:38:33 -0400 (EDT) Subject: Re: [PATCH 4/5] Support 'info proc files' on live FreeBSD processes. To: Simon Marchi References: <20180908003659.37482-1-jhb@FreeBSD.org> <20180908003659.37482-5-jhb@FreeBSD.org> <5889a8bc-3941-677c-ff54-135b1bb9f2d6@ericsson.com> <78a76b21-779f-b44d-29ec-5494b1a5476d@FreeBSD.org> Cc: Simon Marchi , gdb-patches@sourceware.org From: John Baldwin Message-ID: <840618be-9b2a-4a0a-b5af-38fa5b01f88f@FreeBSD.org> Date: Wed, 12 Sep 2018 22:38:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-09/txt/msg00382.txt.bz2 On 9/10/18 12:03 PM, Simon Marchi wrote: > I was thinking more about how to share the code that formats and print > one entry. Let's say you realize later that a column needs to be wider, > you have to remember to update both the live and core versions. Not > really a big deal though. Hmm, ok. I think I've managed to do this in the V2 I will post in a bit. I've made the helper routines fbsd-tdep.c exports more abstract ("print header" and "print entry" rather than for individual fields). -- John Baldwin                                                                            Â