From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95277 invoked by alias); 14 Dec 2016 17:22:46 -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 95263 invoked by uid 89); 14 Dec 2016 17:22:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HTo:U*tim, H*f:sk:iQeKPp_, H*i:sk:iQeKPp_, H*i:sk:4BfaV3j X-HELO: mail-wm0-f50.google.com Received: from mail-wm0-f50.google.com (HELO mail-wm0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 14 Dec 2016 17:22:44 +0000 Received: by mail-wm0-f50.google.com with SMTP id a197so123569018wmd.0 for ; Wed, 14 Dec 2016 09:22:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=7KK+l27a0mB99fNk8WDxrz40Y6yIMhbicho9rG8Bh0k=; b=HnryVTzK5DAiqjXCSXq9mga18IUtACBf/44YpoSOu0Aoq9lOqFdlf0s373V0V3pDHF NE8XyInq2Y1MJLGR27Li123mTXLKK5FNBfKAoEiJ8cgz2kwNXNKsYOw85435BZexMK69 oov9Ip5Yh9EhB8jcea3Lto0VLNQ6M6YyKH6jaaeFMhbwNExyef2IZvpwa35EqWVsR6sI 66QTYjIb1yTY2+IFqfEwqzRVePf6NQACD2/+vqGprgiDZ1pJVymhFWXNQ+4w65BWBjo6 q0xV1LuRprOPjCsLSdf+OUweNKpjgnKXnniECs3Zx9uIbI7Tkx7AbqojZu4YNpYzGXD6 83Aw== X-Gm-Message-State: AKaTC02kXYI6mZYuqX96DrkOGNVZ2aWN1ZrDg8sJQezWlW6iF4kLaCw7glI2uObNyE4M1A== X-Received: by 10.28.105.78 with SMTP id e75mr8808180wmc.55.1481736162755; Wed, 14 Dec 2016 09:22:42 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id y4sm68206160wjp.0.2016.12.14.09.22.40 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 14 Dec 2016 09:22:42 -0800 (PST) Date: Wed, 14 Dec 2016 17:22:00 -0000 From: Yao Qi To: Tim Newsome Cc: Antoine Tremblay , gdb Subject: Re: read target register to decide breakpoint size Message-ID: <20161214172222.GK25542@E107787-LIN> References: <20161214091811.GH25542@E107787-LIN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00023.txt.bz2 On 16-12-14 09:01:53, Tim Newsome wrote: > > Thank you, sounds like reading MISA from kind_from_pc should work out > fine then (unless Yao has an objection we didn't consider). You can't set breakpoint without the live inferior in this way. ./gdb a.out (gdb) b main -- Yao (齐尧)