From patchwork Tue Mar 15 21:58:35 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 11348 Received: (qmail 3723 invoked by alias); 15 Mar 2016 21:58:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 3713 invoked by uid 89); 15 Mar 2016 21:58:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=obtain, 711, Hx-languages-length:2095, composed X-HELO: mail-pf0-f202.google.com Received: from mail-pf0-f202.google.com (HELO mail-pf0-f202.google.com) (209.85.192.202) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 15 Mar 2016 21:58:37 +0000 Received: by mail-pf0-f202.google.com with SMTP id q129so4491225pfb.1 for ; Tue, 15 Mar 2016 14:58:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:message-id:date:subject:from:to:cc; bh=2pvt5xczmOWzf0tS0e7g+Al6uHJ/TNIsLMTdMplfv1E=; b=kySO9NnPjufQKjUV5KACe4K/0VLW6nmnbrpHgygj5PejRz+2twJCYbpqlp3fspL/wt MUqV92dQqhIS/nvfE8hdSdLyid3blbUOje+NirAlq93uQ+z12lrA+o7brN6BYuwMYVYl Rs8hQSJ0fXn6ey79ZUapeyQcPd5oX1dTziFzRjD2cT5OVOpKQUWSF3sKSkrXZulfhnas 9ZMMUW3SFBjstkGqMNAVTYVRCPkBHWR9XK/lzrcqkWj9jmXp8LJ27eYPWkoilHcewa9Q dkoeBORHlQEs8iwFBINPX3iPEBc2cV7r6bHFOrIvmn5ukakIaYmtFSWqmbFV3P9tOFKp DdGA== X-Gm-Message-State: AD7BkJLtfPfek7Qg3JUxOERb3eIw0kEe/IgP/KiWIqVjZJQSyn7ybLEa/ZWZVCbVYR/0jZ1HUw== MIME-Version: 1.0 X-Received: by 10.98.14.21 with SMTP id w21mr275335pfi.7.1458079115670; Tue, 15 Mar 2016 14:58:35 -0700 (PDT) Message-ID: <001a1146145abecc20052e1d7f6b@google.com> Date: Tue, 15 Mar 2016 21:58:35 +0000 Subject: Re: [PATCH 3/5, doc RFA]: Enhancements to "flags": main patch From: Doug Evans To: Eli Zaretskii Cc: gdb-patches@sourceware.org, cole945@gmail.com X-IsSubscribed: yes Eli Zaretskii writes: > > Date: Thu, 03 Mar 2016 18:46:32 +0000 > > From: Doug Evans > > Cc: gdb-patches@sourceware.org, cole945@gmail.com > > > > Eli Zaretskii writes: > > > > Date: Mon, 29 Feb 2016 23:07:09 +0000 > > > > From: Doug Evans > > > > Cc: cole945@gmail.com > > > > > > > > @cindex > > > > +@cindex > > > > If a register's value is composed from several separate values, > > define > > > > -it with a structure type. There are two forms of the @samp{} > > > > -element; a @samp{} element must either contain only bitfields > > > > -or contain no bitfields. If the structure contains only bitfields, > > > > -its total size in bytes must be specified, each bitfield must have an > > > > -explicit start and end, and bitfields are automatically assigned an > > > > -integer type. The field's @var{start} should be less than or > > > > -equal to its @var{end}, and zero represents the least significant bit. > > > > +it with either a structure type or a flags type. > > > > +A flags type may only contain bitfields. > > > > +A structure type may either contain only bitfields or contain no > > bitfields. > > > > +If the value contains only bitfields, its total size in bytes must be > > > > +specified. > > > > > > This drops some of the previous description. Is it no longer correct? > > > > The text has moved and been reorganized a bit, that's all. > > It looked to me as if not all of the old text was elsewhere. > Apologies. No worries. I committed the series. I forgot a NEWS entry, bleah. Let me know if you want something reworded. diff --git a/gdb/NEWS b/gdb/NEWS index 928f70c..34c5a8d 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,9 @@ *** Changes since GDB 7.11 +* GDB now supports multibit bitfields and enums in target register + descriptions. + * New Python-based convenience function $_as_string(val), which returns the textual representation of a value. This function is especially useful to obtain the text label of an enum value.