debugging assembler instructions

Kris Warkentin kewarken@qnx.com
Wed Jan 29 14:52:00 GMT 2003


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
>



More information about the Gdb mailing list