Add some debugger memory utilities (#109)

* add some memory utilities

* run waitpid in a separate thread and support very simple breakpoints

* fix breakpoints

* add missing windows stub function

* fix error message on exit
This commit is contained in:
water111
2020-11-06 13:59:39 -05:00
committed by GitHub
parent f5ed2e6ad7
commit c09541fa98
20 changed files with 1430 additions and 57 deletions
+31
View File
@@ -102,6 +102,37 @@
)
)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; DEBUGGER MACROS
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defmacro db (&rest args)
`(:pm 1 ,@args)
)
(defmacro dh (&rest args)
`(:pm 2 ,@args)
)
(defmacro dw (&rest args)
`(:pm 4 ,@args)
)
(defmacro dd (&rest args)
`(:pm 8 ,@args)
)
(defmacro df (&rest args)
`(:pm 4 ,@args :print-mode float)
)
(defmacro segfault ()
`(-> (the (pointer int) 0))
)
(defmacro fpe ()
`(/ 0 0)
)
;;;;;;;;;;;;;;;;;;;
;; GOAL Syntax