<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">We should do the same for POSIX too I think.<div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div><span class="Apple-style-span" style="font-size: medium;"><font class="Apple-style-span" color="#0000FF" face="'Gill Sans'"><br></font></span></div></span></span></span></span></span></span></span></span></div></span></span></div><div><div>On 11 Dec 2009, at 12:42, Jay Krell wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>CVSROOT:<span class="Apple-tab-span" style="white-space:pre">     </span>/usr/cvs<br>Changes by:<span class="Apple-tab-span" style="white-space:pre">       </span>jkrell@birch.<span class="Apple-tab-span" style="white-space:pre">       </span>09/12/11 12:42:57<br><br>Modified files:<br><span class="Apple-tab-span" style="white-space:pre">      </span>cm3/m3-libs/m3core/src/runtime/WIN32/: Tag: <br><span class="Apple-tab-span" style="white-space:pre">      </span>                                       release_branch_cm3_5_8 <br><span class="Apple-tab-span" style="white-space:pre">      </span>                                       RTOS.m3 <br><br>Log message:<br><span class="Apple-tab-span" style="white-space:pre">     </span>port from head: very small change that makes debugging sometimes much better<br><span class="Apple-tab-span" style="white-space:pre">      </span>(break right into debugger, don't waste time trying to suspend threads<br><span class="Apple-tab-span" style="white-space:pre">    </span>and dump stacks, the debugger does a much better job of suspending<br><span class="Apple-tab-span" style="white-space:pre">        </span>threads and usually (if you have symbols) of dumping stacks)<br><span class="Apple-tab-span" style="white-space:pre">      </span>If you aren't using a debugger, then no change.<br><span class="Apple-tab-span" style="white-space:pre">   </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>The thing about RestoreHandlers can probably just be removed since<br><span class="Apple-tab-span" style="white-space:pre">        </span>in my brief experience the DebugBreak works fine before it.<br><span class="Apple-tab-span" style="white-space:pre">       </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>Really it can probably just go like this:<br><span class="Apple-tab-span" style="white-space:pre"> </span>If debugger<br><span class="Apple-tab-span" style="white-space:pre">       </span>debugbreak<br><span class="Apple-tab-span" style="white-space:pre">        </span>ELSE<br><span class="Apple-tab-span" style="white-space:pre">      </span>suspend others, maybe<br><span class="Apple-tab-span" style="white-space:pre">     </span>dumpstack one of the important parts<br><span class="Apple-tab-span" style="white-space:pre">      </span>restore handlers probably can be removed<br><span class="Apple-tab-span" style="white-space:pre">  </span>Exit(-1) also important though maybe should be TerminateProcess which is much quicker/cleaner<br><span class="Apple-tab-span" style="white-space:pre">     </span>doesn't run all the dllmains<br><span class="Apple-tab-span" style="white-space:pre">      </span><br><span class="Apple-tab-span" style="white-space:pre">  </span>though currently I just made the small change of moving the debugbreak much earlier<br></div></blockquote></div><br></div></body></html>