From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19459 invoked by alias); 29 Jan 2003 14:52:08 -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 19451 invoked from network); 29 Jan 2003 14:52:07 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 29 Jan 2003 14:52:07 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id JAA06432; Wed, 29 Jan 2003 09:42:19 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id JAA17354; Wed, 29 Jan 2003 09:52:06 -0500 Message-ID: <140e01c2c7a5$f1065310$0202040a@catdog> From: "Kris Warkentin" To: "Romain Guilleret" , References: <20030129081028.GB1976@buffy.herge.org> Subject: Re: debugging assembler instructions Date: Wed, 29 Jan 2003 14:52:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-01/txt/msg00482.txt.bz2 You might want to try: display /i $pc and then use stepi. This will show you the instruction you're on as you go. cheers, Kris ----- Original Message ----- From: "Romain Guilleret" To: Sent: Wednesday, January 29, 2003 3:10 AM Subject: debugging assembler instructions > Hi, > > I've written assembler code using __asm__. The code does not work as > expected and I would like to debug it. > > Is it possible to do so using GDB ? Ideally, I would like gdb to stop > after every assembler instruction so that I can inspect memory or > registers to find what's wrong. > > Is it possible to do so using GDB ? > If not, does anybody know another tool that could do it ? > > I'm using GDB 5.2 on a Debian woody system. > > TIA > > Romain Guilleret >