I put a
1:jump 1
At the start, when I need to do this and have no other way.



On Mon, Jul 22, 2024 at 01:28 Edouard Klein <[email protected]> wrote:

> 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-Mb91c323511c37b5d7da47a39
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to