This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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 inline assembler


Lukas writes:
 > Hi.
 > I'm using in line assembler in g++, and i wont to
 > debug 
 > lines in 'asm(....)' unfortunately 'gdb' just skip it.

You're using the wrong commands in gdb.

Put a breakpoint on func, then

disp/i $pc
si

... etc.

Andrew.


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