3 ms·
Can I do this with a hand-written assembly program, i.e. not necessarily one that has been compiled with as and subject to GNU default optimisations or "constra
by stonefroot 14y ago
Can I do this with a hand-written assembly program, i.e. not necessarily one that has been compiled with as and subject to GNU default optimisations or "constraints"?
- duaneb 14y agoIt's been many years since i've done hand-written assembly, so I can't say for sure, but it should be able to do instruction stepping on arbitrary programs.
- tene 14y agoYes.
- cfallin 14y agoThe commands you want are "stepi" (single-step one instruction), "disass" (disassemble at the current point in the program), and "info registers" (show you what's in all of the registers). These work equally well for hand-written assembly and for any arbitrary compiled program.
- stonefroot 14y agocfallin: many, many thanks. I guess should read the gdb manual, and, if it's anything like the as manual (which I've learned is not always the full story), the source too.