title: Can gdb used to step through the assembler instructions of a program not compiled with -g?
body: <p>I tried to run a program which is not compiled with the -g option inside <code>gdb</code> in Linux (e.g. /bin/ls). <code>gdb</code> runs the program (BTW <code>lldb</code> does not). I wonder whether it is possible to execute the program stepping through the machine instructions with <code>si</code>(I don't see why not, in principle). But the question is: how do you set breakpoints? If you simply run the program, it executes and exits.</p>