From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 4AO4MPx1p2AxdAAAWB0awg (envelope-from ) for ; Fri, 21 May 2021 04:57:32 -0400 Received: by simark.ca (Postfix, from userid 112) id BAC791F11C; Fri, 21 May 2021 04:57:32 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id E5A261E01F for ; Fri, 21 May 2021 04:57:31 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 127B43857C44; Fri, 21 May 2021 08:57:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 127B43857C44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1621587451; bh=UzvjZ4uGQLrtooJAEps964NNNDphNMXhdNMnasQHnok=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=itzj1v+ZVIUqeFej9VBZIQB+TUGuLngVOahvvr1LddRYTruiF2kn1fNF0rhRlbbOL 7s86OLpsAUBB4WNGR1Ok1i5deo+GfLkRLpRs8mv6ZtVxgQR+fvRb+gIg6CF0YgqQRv j0YEoF6a7hxzJJeGbh6Jz0DCFKG/zUociXliFb20= Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by sourceware.org (Postfix) with ESMTPS id 0588A3857C44 for ; Fri, 21 May 2021 08:57:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0588A3857C44 Received: by mail-pg1-x534.google.com with SMTP id l70so13730196pga.1 for ; Fri, 21 May 2021 01:57:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=vfXp+l1fH215z4G+gQd5hzrWAEXsekDiG61QjF1DRos=; b=IL6aZTiiDfz5Yg1ZdMazeXmeQyqI0SFxts0ghXCHrazu4Z6qe57DXuSmdHq2SwDagl Pgqnj6NQ2hle7EmIJ0IM5/xowWq4lzt2//IL0HR/QZw2utLXsdocEZkHZkivaQ7UdX3K HRAkc0hUGYlXbA8r9ByQnnESz3tkfSP9AFLayxudBgnWY66rZgfhxnVMqW3FS7W5kt+n 42AncA/fDXklczox+qmK7eQ6jx7oa+kW79D6IKppADY0/8Wt5p9BXN3UJzYBI6if7xjL pYO3R4ObxA/9iHEa0a45TNNaDJ4B2A2suzJd/hvwuF/oyhbl7Oecv5dcozAPN6ofe6mO mx9w== X-Gm-Message-State: AOAM5332Je12sjzv144YxpazZ6pRp4WVPlqodJslNWhVb3SF7JRlZC8x MytTY00uPRw9tc1y0IGWY2UDqrAurA6RGKE6SZAE+P5HKYk= X-Google-Smtp-Source: ABdhPJz06N9iMOMBGFjfADUnjMWa9RDPbo7qfCbM/OkurNHdZFmmA0Iy/YMkfrgGfbla3LuCgwtmksMGcHeGWw+kyIs= X-Received: by 2002:a63:b907:: with SMTP id z7mr8647520pge.112.1621587447017; Fri, 21 May 2021 01:57:27 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 21 May 2021 14:27:15 +0530 Message-ID: Subject: GDB | DWARF expression | Extracting a range of bits from an 'xmm' register To: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: vaibhav kurhe via Gdb Reply-To: vaibhav kurhe Errors-To: gdb-bounces@sourceware.org Sender: "Gdb" Hello all, For a use case, I am trying to build a DWARF expression which represents the value of an arbitrary range of bits (e.g. 96-127 bits) in an *128-bit xmm register* to be used as a *location attribute value* for a variable DIE. I am using GDB to consume the debug info and test it. Following is the expression I started with to test out a shift operation on an 128-bit xmm0 register using Typed DWARF stack :- *"DW_OP_GNU_regval_type: 21 (xmm0) <0x30>; DW_OP_GNU_const_type: <0x30> 16 byte block: 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ; DW_OP_shl; DW_OP_stack_value"* But, while testing it in GDB, I got an error :- *"That operation is not available on integers of more than 8 bytes."* Could you please provide any suggestions/pointers on this? Am I missing something? Please let me know, if you need any additional info. Thanks & Regards, Vaibhav