This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
debugging inline assembler
- From: Lukas <blurrpp at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 19 Jul 2007 21:43:16 -0700 (PDT)
- Subject: debugging inline assembler
Hi.
I'm using in line assembler in g++, and i wont to
debug
lines in 'asm(....)' unfortunately 'gdb' just skip it.
I compile with 'g++ -gstabs -o prog prog.cpp' and in
'gdb' use 'stepi'. For example in program below 'gdb'
skip nolrmaly to function 'func' and than make
'asm(...)' but i can't see it step by step.
void func(short int* );
int main()
{
shotr int reg[6];
func(reg);
return 0;
}
void func(short int* )
{
asm(
"movq -8(%rbp),%rax\n\t"
.
.
.
);
}
what should i do to force gdb not to skip 'asm'
instructions ?
( I don't want to use 'external' function because it
makes some problems during compilation )
Lukas
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/