From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 114470 invoked by alias); 14 Feb 2017 13:59:16 -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 114457 invoked by uid 89); 14 Feb 2017 13:59:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*i:sk:a21e350, H*MI:sk:a21e350, H*f:sk:a21e350 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Feb 2017 13:59:15 +0000 Received: from smtp.corp.redhat.com (int-mx16.intmail.prod.int.phx2.redhat.com [10.5.11.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 30F8B3D955; Tue, 14 Feb 2017 13:59:15 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id EAA3D6E90D; Tue, 14 Feb 2017 13:59:13 +0000 (UTC) Subject: Re: [PATCH V7] amd64-mpx: initialize bnd register before performing inferior calls. To: "Tedeschi, Walfred" , qiyaoltc@gmail.com, brobecker@adacore.com References: <1485875613-31975-1-git-send-email-walfred.tedeschi@intel.com> <53d42bb6-3b83-6213-4087-6d30e7d837de@redhat.com> <217a8c13-b7d0-7fe6-56b5-85ff53ce097a@intel.com> <88c7180f-8843-a148-425a-2adf56c6d0bf@redhat.com> <32693426-fbaf-8345-04c7-e2c329d6ec6e@intel.com> Cc: gdb-patches@sourceware.org From: Pedro Alves Message-ID: Date: Tue, 14 Feb 2017 13:59:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-02/txt/msg00384.txt.bz2 On 02/14/2017 01:34 PM, Tedeschi, Walfred wrote: > On 02/13/2017 09:33 AM, Tedeschi, Walfred wrote: >> At the inferior call time all BND registers are set to the INIT state. >> That covers 90% of the usage case and keeps the actual behavior of GDB. >> In case it is desirable to investigate any bound violation user can >> add a breakpoint on the prolog of the function and >> set the BND register there, I understand that this is the normal use >> case for the debugger as well. > In reality it did not work as expected. When an inferior call is done > and there is a breakpoint in the executed GDB issues a message like: > > "The program being debugged stopped while in a function called from GDB. > Evaluation of the expression containing the function > (foo) will be abandoned. > When the function is done executing, GDB will silently stop." This looks normal. What were you expecting instead? > Also after that no signal generated within the function call is reported. Please clarify. > Not sure if this a limitation or a bug. In case you think it is a bug i > can add some entries in Bugzilla. Thanks, Pedro Alves