I've written a C program which includes some assembler code in which I have some instructions which lead to a breakpoint exception (INT3
) This is nice when debugging (since you don't have to save and restore the breakpoints when restarting the gdb session).
But now I want to disable these traps, which is possible by the -no-break
or the -no-trap
option of as
(the gnu assembler), but I don't find a way to specify these options as options of gcc
so that gcc
passes the option down to as.
Is there a way to do so? (somehow gcc -g -o file -Xassembler -no-trap main.c file.S
does not work)