This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: debugging assembler instructions
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Romain Guilleret" <rguiller at free dot fr>, <gdb at sources dot redhat dot com>
- Date: Wed, 29 Jan 2003 09:51:44 -0500
- Subject: Re: debugging assembler instructions
- References: <20030129081028.GB1976@buffy.herge.org>
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" <rguiller@free.fr>
To: <gdb@sources.redhat.com>
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
>