From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12016 invoked by alias); 28 Dec 2011 04:04:45 -0000 Received: (qmail 12007 invoked by uid 22791); 28 Dec 2011 04:04:44 -0000 X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 28 Dec 2011 04:04:30 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LWW00D00B8IU000@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Wed, 28 Dec 2011 06:03:42 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.18.76]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LWW00DPFBA5OC30@a-mtaout20.012.net.il>; Wed, 28 Dec 2011 06:03:42 +0200 (IST) Date: Wed, 28 Dec 2011 06:02:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH] Add extra 'info os' information types for Linux (trunk and 7.4) In-reply-to: <4EFA54FF.1080307@earthlink.net> To: Stan Shebs Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <834nwlwdek.fsf@gnu.org> References: <4E95DC58.7030805@codesourcery.com> <4ECD3496.1070609@codesourcery.com> <4EF9497B.9020501@earthlink.net> <4EFA54FF.1080307@earthlink.net> X-IsSubscribed: yes 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 X-SW-Source: 2011-12/txt/msg00862.txt.bz2 > Date: Tue, 27 Dec 2011 15:30:07 -0800 > From: Stan Shebs > CC: gdb-patches@sourceware.org > > I think the answer is that there would be few if any "info os" > subcommands that would be genuinely common to all operating systems that > GDB supports; embedded OSes may not even have a well-defined concept of > processes. On the other hand, one could argue that anything that is not > totally general should be given a OS-specific subcommand, a la "info dos". But "info dos" is not more OS-specific than the commands suggested here. > And although the patch at hand consists of implementations for Linux, I > don't think any of the types of data are truly Linux-only; the IPC types > are common to all System V inheritors for instance, and even the > seemingly-Linux concept of loadable kernel modules now has a BSD > equivalent. By comparison, "info dos" has subcommands like "gdt" > (global descriptor table) that are not meaningful for any other kind of OS. Any modern system that runs on x86 will have a GDT, it's just that most don't let you access it easily. So I really don't see a fundamental difference here.