From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by sourceware.org (Postfix) with ESMTPS id 81F41385840A for ; Mon, 27 Mar 2023 11:39:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 81F41385840A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679917184; x=1711453184; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kNALg9i1ynGSe5AC/tPQgX/vv3W8jFQbkpLoVJxb/xg=; b=TwiIB8E1fp9YCEWL2okb0Fir+9CceNkrioqHiRPgx+j4szkTvncCvsdy TzsV2tCx7HdGawIJa96e3y7awbWsGYoW7pRZWt+0ud6hM2Cj+qe5AAp9M 3uFdvVJwR3w39tRn6LFsrpud+82x8I/ngMQbjokdLsZKBwOarvneGqP0U lSqBqvCZxn+6I3K1OtWOZvmJ8ywW0WM1np06opgwfZQdD+EyllNmX7Hkn mLv2N9hUYAA2/I1NiJ30kFFfhi5ea0BCpyo3T/k546U4PLtIi0g5GF0x5 bm78+OhVqF0yuTO0uayMnpLO4XxE/QpHQgchIYfhJhqD5N1rkI7t8naCB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="328678687" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="328678687" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 04:39:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="685946213" X-IronPort-AV: E=Sophos;i="5.98,294,1673942400"; d="scan'208";a="685946213" Received: from labpc2315.iul.intel.com (HELO localhost) ([172.28.50.57]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Mar 2023 04:39:42 -0700 From: Christina Schimpe To: gdb-patches@sourceware.org Cc: Christina Schimpe Subject: [PATCH 1/1] gdb, doc: correct argument description for info connections/inferiors Date: Mon, 27 Mar 2023 13:39:22 +0200 Message-Id: <20230327113922.618826-2-christina.schimpe@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230327113922.618826-1-christina.schimpe@intel.com> References: <20230327113922.618826-1-christina.schimpe@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Nils-Christian Kempke It said for 'info inferiors' and 'info connections' that the argument could be 'a space separated list of inferior numbers' which is correct but incomplete. In fact the arguments can be any space separated combination of numbers and (ascending) ranges. The beginning of the section now describes the ID list as a new keyword. Co-Authored-By: Christina Schimpe --- gdb/doc/gdb.texinfo | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 6c811b8be2e..da008e34dfa 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -3216,6 +3216,16 @@ embedded targets may have several inferiors running in different parts of a single address space. Each inferior may in turn have multiple threads running in it. +@anchor{ID list} +@cindex ID list +The commands @code{info inferiors} and @code{info connections}, which will be +introduced below, accept a space-separated @dfn{ID list} as their argument +specifying one or more elements on which to operate. A list element can be +either a single non-negative number, like @samp{5}, or an ascending range of +such numbers, like @samp{5-7}. A list can consist of any combination of such +elements, even duplicates or overlapping ranges are valid. E.g.@: +@samp{1 4-6 5 4-4} or @samp{1 2 4-7}. + To find out what inferiors exist at any moment, use @w{@code{info inferiors}}: @@ -3223,9 +3233,9 @@ inferiors}}: @kindex info inferiors [ @var{id}@dots{} ] @item info inferiors Print a list of all inferiors currently being managed by @value{GDBN}. -By default all inferiors are printed, but the argument @var{id}@dots{} --- a space separated list of inferior numbers -- can be used to limit -the display to just the requested inferiors. +By default all inferiors are printed, but the ID list (@pxref{ID list}) +@var{id}@dots{} can be used to limit the display to just the requested +inferiors. @value{GDBN} displays for each inferior (in this order): @@ -3284,10 +3294,9 @@ To find out what open target connections exist at any moment, use @kindex info connections [ @var{id}@dots{} ] @item info connections Print a list of all open target connections currently being managed by -@value{GDBN}. By default all connections are printed, but the -argument @var{id}@dots{} -- a space separated list of connections -numbers -- can be used to limit the display to just the requested -connections. +@value{GDBN}. By default all connections are printed, but the ID list +(@pxref{ID list}) @var{id}@dots{} can be used to limit the display to just the +requested connections. @value{GDBN} displays for each connection (in this order): -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928