Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* debugging assembler instructions
@ 2003-01-29  8:10 Romain Guilleret
  2003-01-29  9:50 ` Andreas Schwab
  2003-01-29 14:52 ` Kris Warkentin
  0 siblings, 2 replies; 4+ messages in thread
From: Romain Guilleret @ 2003-01-29  8:10 UTC (permalink / raw)
  To: gdb

		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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging assembler instructions
  2003-01-29  8:10 debugging assembler instructions Romain Guilleret
@ 2003-01-29  9:50 ` Andreas Schwab
  2003-01-29 11:56   ` Romain Guilleret
  2003-01-29 14:52 ` Kris Warkentin
  1 sibling, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2003-01-29  9:50 UTC (permalink / raw)
  To: Romain Guilleret; +Cc: gdb

Romain Guilleret <rguiller@free.fr> writes:

|> 		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 ?

What's wrong with stepi?

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging assembler instructions
  2003-01-29  9:50 ` Andreas Schwab
@ 2003-01-29 11:56   ` Romain Guilleret
  0 siblings, 0 replies; 4+ messages in thread
From: Romain Guilleret @ 2003-01-29 11:56 UTC (permalink / raw)
  To: gdb

Well I didn't know stepi, and juste found it this morning.
And yes, it solves my problem.

Thanks anyway


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: debugging assembler instructions
  2003-01-29  8:10 debugging assembler instructions Romain Guilleret
  2003-01-29  9:50 ` Andreas Schwab
@ 2003-01-29 14:52 ` Kris Warkentin
  1 sibling, 0 replies; 4+ messages in thread
From: Kris Warkentin @ 2003-01-29 14:52 UTC (permalink / raw)
  To: Romain Guilleret, gdb

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
>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-01-29 14:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-29  8:10 debugging assembler instructions Romain Guilleret
2003-01-29  9:50 ` Andreas Schwab
2003-01-29 11:56   ` Romain Guilleret
2003-01-29 14:52 ` Kris Warkentin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox