From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <14ec7b180603031118m48af4e93k1a9b3aada880a4e@mail.gmail.com> Date: Fri, 3 Mar 2006 12:18:55 -0700 From: "andrey mirtchovski" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [9fans] debugging threads Topicbox-Message-UUID: 0a9fa07c-ead1-11e9-9d60-3106f5b1d025 how does one set a breakpoint in a process started with proccreate? say i h= ave: someproc() { recv(chan, x); somefunc(x); } threadmain() { proccreate(someproc,...); do_something(); send(chan, somex); .... } i want to break just before the call to 'somefunc()' in the process executing someproc() i'm trying with: acid: bpset(do_something) acid: cont() /* bp reached */ acid: threads() /* see pid of someproc */ acid: setproc(pid) acid: bpset(somefunc) and here i get 'waiting...' but i can't go back to the main thread and do a cont(), so the send() never happens... please unleash your knowledge upon me. thanks.