From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115250 invoked by alias); 28 Jul 2017 16:34:19 -0000 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 Received: (qmail 115225 invoked by uid 89); 28 Jul 2017 16:34:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,RCVD_IN_SORBS_SPAM,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=Continuing X-HELO: aserp1040.oracle.com Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Jul 2017 16:34:15 +0000 Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v6SGYC7S003762 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jul 2017 16:34:12 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v6SGYBb0004061 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 28 Jul 2017 16:34:12 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v6SGYB49005138; Fri, 28 Jul 2017 16:34:11 GMT Received: from [10.159.248.250] (/10.159.248.250) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 28 Jul 2017 09:34:11 -0700 Subject: Re: [PATCH v4] gdb: ADI support To: Yao Qi Cc: "gdb-patches@sourceware.org" References: <1500424890-112103-1-git-send-email-weimin.pan@oracle.com> <86o9s8pmyg.fsf@gmail.com> <86d18mqgd1.fsf@gmail.com> <7062f348-98f9-fef6-aa76-02308abf9c01@oracle.com> From: Wei-min Pan Message-ID: Date: Fri, 28 Jul 2017 16:34:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-07/txt/msg00433.txt.bz2 On 7/28/2017 3:30 AM, Yao Qi wrote: > On Thu, Jul 27, 2017 at 5:34 PM, Wei-min Pan wrote: > >> The first "adi x shmaddr" command is mainly used to test that the ADI >> information is available >> at the address. Its value which can be anything is not tested. The second >> "examine" command, >> on the other hand, makes sure the new ADI version tag is being set correctly >> at the address. >> > Can you show me the output of these adi commands? > (the output in gdb.log for example)Then, I can give some > concrete suggestions on the patterns to match output > in these tests. > Here are the outputs of these commands. Thanks. .... Breakpoint 2, main () at /home/wepan/work/binutils-gdb/gdb/testsuite/gdb.arch/sparc64-adi.c:86^M 86 if (memory_fill (shmaddr, SHMSIZE, PAT) != 0) /* line breakpoint here */^M (gdb) PASS: gdb.arch/sparc64-adi.exp: continue to breakpoint: continue to line breakpoint in main adi x shmaddr^M 0xfff800010002c000: 0 ^M (gdb) PASS: gdb.arch/sparc64-adi.exp: examine ADI adi a/100 shmaddr=7^M (gdb) PASS: gdb.arch/sparc64-adi.exp: assign ADI adi x/100 shmaddr^M 0xfff800010002c000: 7 7 ^M (gdb) PASS: gdb.arch/sparc64-adi.exp: examine new ADI adi a/100 shmaddr=0x0^M (gdb) PASS: gdb.arch/sparc64-adi.exp: reset ADI continue^M Continuing.^M ^M Program received signal SIGSEGV, Segmentation fault^M ADI precise mismatch while accessing address 0xfff8000100048000.^M 0xfff8000100129f38 in adi_set_version () from /usr/lib64/libadi.so^M (gdb) PASS: gdb.arch/sparc64-adi.exp: continue to sigsegv