[dylan-lang/opendylan] 9a58f3: Bug 7458: Trap arithmetic exceptions on Mac OS X

GitHub <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <550254d7679a2_1b703f9449c892a01046b2@hookshot-fe6-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/master
  Home:   https://github.com/dylan-lang/opendylan
  Commit: 9a58f3b5f4dcec128d2ccb3020cc56d9adace287
      https://github.com/dylan-lang/opendylan/commit/9a58f3b5f4dcec128d2ccb3020cc56d9adace287
  Author: Peter S. Housel <[email protected]>
  Date:   2015-03-12 (Thu, 12 Mar 2015)

  Changed paths:
    M sources/lib/run-time/Makefile.in
    M sources/lib/run-time/llvm-exceptions.c

  Log Message:
  -----------
  Bug 7458: Trap arithmetic exceptions on Mac OS X

* sources/lib/run-time/llvm-exceptions.c
  (exception_port): New static variable.
  (catcher): New thread function for running mach_exc_server.
  (catch_mach_exception_raise, catch_mach_exception_raise_state): New
   dummy handler functions called by mach_exc_server.
  (catch_mach_exception_raise_state_identity): New Mach exception handler
   function for EXC_ARITHMETIC exceptions.
  (EstablishDylanExceptionHandlers): Implement by starting a server
   thread when needed and setting the current thread's exception port
   for EXC_ARITHMETIC to exception_port.
  (RemoveDylanExceptionHandlers): Edit commentary.

* sources/lib/run-time/Makefile.in: Add rules for running MIG (the
  Mach Interface Generator) to generate server interface codewhen
  building for Mac OS X. Build the generated mach_excServer.c source
  file into the LLVM run-time.


  Commit: cd37051a9f6b8daf74db84206eecf99a28cf4089
      https://github.com/dylan-lang/opendylan/commit/cd37051a9f6b8daf74db84206eecf99a28cf4089
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-03-13 (Fri, 13 Mar 2015)

  Changed paths:
    M sources/lib/run-time/Makefile.in
    M sources/lib/run-time/llvm-exceptions.c

  Log Message:
  -----------
  Merge pull request #870 from housel/mach-exception-magic

Trap arithmetic exceptions on Mac OS X


Compare: https://github.com/dylan-lang/opendylan/compare/c97d6c7ddd99...cd37051a9f6b

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.