From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25505 invoked by alias); 30 Jan 2012 00:54:12 -0000 Received: (qmail 25497 invoked by uid 22791); 30 Jan 2012 00:54:11 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 30 Jan 2012 00:53:59 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EB0AE2BAFDB; Sun, 29 Jan 2012 19:53:58 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id sZscCyPvtKvo; Sun, 29 Jan 2012 19:53:58 -0500 (EST) Received: from [127.0.0.1] (kwai.gnat.com [205.232.38.4]) by rock.gnat.com (Postfix) with ESMTP id B0DA12BAFD4; Sun, 29 Jan 2012 19:53:58 -0500 (EST) Message-ID: <4F25EA26.8020901@adacore.com> Date: Mon, 30 Jan 2012 00:54:00 -0000 From: Robert Dewar User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.25) Gecko/20111213 Thunderbird/3.1.17 MIME-Version: 1.0 To: Jan Kratochvil CC: Xin Tong , gdb@sourceware.org Subject: Re: software breakpoint in gdb References: <20120129165303.GA18465@host2.jankratochvil.net> In-Reply-To: <20120129165303.GA18465@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2012-01/txt/msg00110.txt.bz2 On 1/29/2012 11:53 AM, Jan Kratochvil wrote: > On Sun, 29 Jan 2012 17:48:30 +0100, Xin Tong wrote: >> What if the interrupt instruction is bigger than breakpointed >> instruction ? > > I do not know about such architecture, it probably does not exist. It sure would be a disastrous mistake to make in any architectural design. the x86 of course has a one byte interrupt instruction precisely for this purpose.