9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Inferno: starting a process in a stopped state
@ 2024-07-22  8:21 Edouard Klein
  2024-07-24 19:52 ` ron minnich
  0 siblings, 1 reply; 5+ messages in thread
From: Edouard Klein @ 2024-07-22  8:21 UTC (permalink / raw)
  To: 9fans

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-08-04 14:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-22  8:21 [9fans] Inferno: starting a process in a stopped state Edouard Klein
2024-07-24 19:52 ` ron minnich
2024-08-03 14:03   ` Edouard Klein
2024-08-04 13:37     ` Edouard Klein
2024-08-04 14:26       ` Edouard Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).