From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31160 invoked by alias); 26 Nov 2007 19:28:37 -0000 Received: (qmail 31152 invoked by uid 22791); 26 Nov 2007 19:28:36 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 26 Nov 2007 19:28:32 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 81C5E3BDF0; Mon, 26 Nov 2007 11:06:54 -0800 (PST) Subject: Re: Questionable breakpoint stepping code From: Michael Snyder To: Vladimir Prus Cc: gdb@sources.redhat.com In-Reply-To: <200711262216.27906.vladimir@codesourcery.com> References: <1196102967.2501.29.camel@localhost.localdomain> <200711262216.27906.vladimir@codesourcery.com> Content-Type: text/plain Date: Mon, 26 Nov 2007 19:28:00 -0000 Message-Id: <1196104576.2501.55.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) 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: 2007-11/txt/msg00236.txt.bz2 On Mon, 2007-11-26 at 22:16 +0300, Vladimir Prus wrote: > > As for your last question, no, I don't believe we approve > > of ifdefs... > > Well, the question, then is -- how do we make this code work > correctly even if the instruction at PC is not 4 bytes in size? > Calling disassembler seems a plausible approach. Good suggestion.