[LLVMdev] Files to lib/System/Win32

Reid Spencer reid at x10sys.com
Tue Sep 14 21:05:07 PDT 2004


Thanks, Jeff. I'll take a look at these later tonight and get them into
CVS.

Reid.

On Tue, 2004-09-14 at 20:16, Jeff Cohen wrote:
> Here are some more... and that takes care of the easy ones.
> 
> Path I'll wait on until you finish updating it.
> 
> Signals is a problem...  It appears to be doing two tasks.  First, it
> prints a stack trace when something like a seg fault occurs.  Second, it
> makes sure a set of files and directories are deleted on an abnormal
> exit.
> 
> The first is no problem.  It won't even be necessary to fork off a
> separate program, so long as Microsoft-format symbol tables are present
> (and if there aren't... well... you'll just get a bunch of hexadecimal
> addresses). 
> 
> The other is a problem.  It is not possible to delete open files on
> Windows, and the odds are these files will be open because... well...
> things crashed before there was a chance to clean things up.
> 
> Even for the files which aren't open and so can be deleted, you wouldn't
> necessarily want to delete them at this point.  After this handler
> executes, a dialog box pops up asking if you want to start the debugger.
> It might be a good idea to keep these files around as the program
> technically is still executing while it's being debugged.
> 
> There is a Windows-centric solution to this:  open the files with the
> delete-on-close flag.  The implicit closing of all open files at process
> termination--normal or abnormal, or even post debugging--will trigger
> the deletion.  How to take advantage of this is unfortunately far from
> obvious.
> 
> ______________________________________________________________________
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040914/cc140ec3/attachment.sig>


More information about the llvm-dev mailing list