Hi ! I'm writing dis assembly, and I would like to debug my program right from the entrypoint.
I intend to use the /prog filesystem for that, thanks to which one can stop a program by echoing "stop" to dbgctl file. However, what I need to do is stop the program at the very start. I have multiple ideas, such as introducing a sleep or a read that would let me enough time to stop the program, but they have the bad property of modifying the program. I could create a loader program that would exec the target program and stop the loader right before the exec, and I suspect (but I'm not sure) that would let me stop the target program. But these all sound very rube goldbergy to me. Is there a way to start a program in a stopped state that I have overlooked ? Thanks in advance, Cheers, Edouard. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4297f451b18d599a-Md3642db0bae45288d5553df6 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
