Qemu debugging an assembly kernel -
i writing os in assembly (the bootloader , kernel) , debugging using qemu.
want set debug breakpoints pause executions , execute 1 instruction @ time (single step).also want read , set registers , memory contents @ runtime. read way use gdb. problem haven't used gdb before , after searched realize gdb uses labels puted c compiler (gcc) in object file,doesn't it? said writing in assembly (using nasm) , have pure raw binary how that? exist way? maybe can create own gdb server or that?
i realize gdb uses labels puted c compiler (gcc) in object file
gdb when labels available. when not, gdb display raw addresses.
nothing stops setting breakpoints on raw addresses when other "labels" available.
Comments
Post a Comment