debugging - Add breakpoints to elf -


i building os in assembly , using nasm assembly. telling nasm create binary file using debug qemu.
debug easier using gdb qemu. giving gdb .elf object file creating using nasm (with same input files , .elf output).
nasm not support adding breakpoints in source code , when want put breakpoint telling gdb. because assembling lot of times per day os using batch file. problem evry time reassembling os debug info lost need reput breakpoints.
may know os have lot of functions , want put breakpoint @ of them cannot continue way.

so way put breakpoints @ elf file?
can example use gdb , @ command line pass file stdin contains instructions , exit?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -