From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 90017 invoked by alias); 27 Jul 2015 12:47:45 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 90007 invoked by uid 89); 27 Jul 2015 12:47:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_LOTSOFHASH,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (208.118.235.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 27 Jul 2015 12:47:42 +0000 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJhoi-0008Ie-6q for gdb@sourceware.org; Mon, 27 Jul 2015 08:47:41 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJhoi-0008Ia-4V for gdb@sourceware.org; Mon, 27 Jul 2015 08:47:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47950) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ZJhoh-0000nW-Pz for gdb@gnu.org; Mon, 27 Jul 2015 08:47:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJhoc-0008HK-Cc for gdb@gnu.org; Mon, 27 Jul 2015 08:47:39 -0400 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:36348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJhoc-0008HF-48 for gdb@gnu.org; Mon, 27 Jul 2015 08:47:34 -0400 Received: by lbbqi7 with SMTP id qi7so52519274lbb.3 for ; Mon, 27 Jul 2015 05:47:33 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.115.199 with SMTP id jq7mr26713984lab.113.1438001253333; Mon, 27 Jul 2015 05:47:33 -0700 (PDT) Received: by 10.114.79.201 with HTTP; Mon, 27 Jul 2015 05:47:33 -0700 (PDT) Date: Mon, 27 Jul 2015 12:47:00 -0000 Message-ID: Subject: gdb prints only 128 bits of a YMM register (AVX) From: Laurent ML To: gdb@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-SW-Source: 2015-07/txt/msg00061.txt.bz2 Hello, I have created a small C program that uses AVX extensions, and I have compiled it with options -03 -mavx. Next I used GDB to print the content of YMM registers, but each time I print the content of one of the YMM register, gdb prints only the highest 128 bits of the registers: Breakpoint 1, 0x0000000000400a70 in func2_compare_32bitsPack () $1 = ">" $2 = {0xffffffffffff00000000000000000000, 0x00000000000000000000000000000000} $3 = {0x0000000000006e6f73697261706d6f43, 0x00000000000000000000000000000000} $4 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $5 = {0x000000000000ff000000000000ffffff, 0x00000000000000000000000000000000} $6 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $7 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $8 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $9 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $10 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $11 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $12 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $13 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $14 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $15 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $16 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} $17 = {0x00000000000000000000000000000000, 0x00000000000000000000000000000000} Is there a way to get the last part of the register ? I used gdb on EL7 : $ gdb -v GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-64.el7 Thanks for your help.