From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11844 invoked by alias); 29 Apr 2005 12:50:09 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10208 invoked from network); 29 Apr 2005 12:49:11 -0000 Received: from unknown (HELO nwd2mail3.analog.com) (137.71.25.52) by sourceware.org with SMTP; 29 Apr 2005 12:49:11 -0000 Received: from nwd2mhb2.analog.com (nwd2mhb2.analog.com [137.71.6.12]) by nwd2mail3.analog.com (8.12.10/8.12.10) with ESMTP id j3TCn7kc023579 for ; Fri, 29 Apr 2005 08:49:07 -0400 Received: from nwd2exm3.ad.analog.com (nwd2exm3.ad.analog.com [10.64.51.19]) by nwd2mhb2.analog.com (8.9.3 (PHNE_28810+JAGae91741)/8.9.3) with ESMTP id IAA01631 for ; Fri, 29 Apr 2005 08:49:09 -0400 (EDT) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: implementing stepi Date: Fri, 29 Apr 2005 13:03:00 -0000 Message-ID: From: "Decker, Paul" To: X-Spam-Status: No, hits=-100.0 required=10.0 tests=USER_IN_WHITELIST version=3.0.2 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 3.000002 (2004-11-16) X-SW-Source: 2005-04/txt/msg00213.txt.bz2 hello everyone, I have what I believe is a simple question on the implementation of the stepi feature. Some processors provide a mechanism to step exactly one instruction, such as a special bit in a debug control register. While other processors don't provide this capability, and to implement a step, breakpoints must be sprinkled in various places, and a run (to the breakpoint) performed. Looking at some of the gdb source, it seems that stepi is implemented using the breakpoint method. In doing a port to my custom processor, is it considered ok to use the hardware method if available? Thanks, Paul.