I debug a ELF32 executable in Ubntu 14, I set gdb breakpoint in main, after i click run, the program generate a new process 13050 and exited, I can't use info register to display value and continue debugging.
how to deal with such situation, thanks
Thanks for the reply, let me give more details, program abc is ELF32 file, it is currently running as process 10220, when i use gdb abc, break main, run, it kills itself ( process 10220) and generate a new process 13050, and this new pid is with another file name xyz. when i display info register or disassembly, whenever i set set follow-fork-mode to parent or child, it says program not exist in gdb. any advice?
in short, abc becomes xyz and abc is deleted by program, any solution?