I have a .ko file which I grabbed from a router (MSB MIPS), and I'm trying to debug a specific function inside it with IDA.Since i can't just run the ko file with QEmu, I tried to change its header to make QEmu think It's an ELF executable. By doing this, I was able to run and connect with IDA (with warnings of course) but when I do the first step inside the function I get SIGSEGV signal.My setup is:Ubuntu host with statically compiled qemu-mipsVM with IDA PROBTW, the function I'm trying to debug is not using any hardware. I hope you can point me to the right direction.
Debug function in MIPS .ko file (with IDA and Qemu)
ida;debugging;mips;qemu