From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10845 invoked by alias); 17 Jul 2013 12:10:09 -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 10829 invoked by uid 89); 17 Jul 2013 12:10:08 -0000 X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.3.1 Received: from Unknown (HELO mail.sceen.net) (5.39.75.216) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 17 Jul 2013 12:10:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sceen.net (Postfix) with ESMTP id 0F41A120120; Wed, 17 Jul 2013 14:09:59 +0200 (CEST) Received: from mail.sceen.net ([127.0.0.1]) by localhost (mail.sceen.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bHF5_pumUCKp; Wed, 17 Jul 2013 14:09:58 +0200 (CEST) Received: by mail.sceen.net (Postfix, from userid 1000) id C775512174A; Wed, 17 Jul 2013 14:09:58 +0200 (CEST) Date: Wed, 17 Jul 2013 12:10:00 -0000 From: Richard Braun To: Yue Lu Cc: Luis Machado , gdb@sourceware.org, bug-hurd@gnu.org, Thomas Schwinge Subject: Re: how to continue from a breakpoint in GNU/Hurd Message-ID: <20130717120954.GA26158@dalaran.sceen.net> References: <51E5785D.1050904@codesourcery.com> <51E58223.5040505@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-07/txt/msg00054.txt.bz2 On Wed, Jul 17, 2013 at 02:11:58PM +0800, Yue Lu wrote: > When I get the exception message, I set the EIP to the next instruction > (for instance 0x12345678), after resume it, I call get_thread_state(), and > found the EIP is still 0x12345678. The inferior never running anymore. I don't think it has anything to do with the instruction cache. Use the thread_info() call to determine what the suspend count is, it may have been incremented implicitely. -- Richard Braun