This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debugging assembler instructions


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
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]