-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated gillian to work with main branch
- Loading branch information
1 parent
cda048f
commit 7beb2ad
Showing
19 changed files
with
1,139 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Installation | ||
Pin Gillian | ||
```bash | ||
opam pin gillian [email protected]:GillianPlatform/Gillian.git#0c14d64 --with-version "0c14d64" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
(executable | ||
(public_name cn-debug) | ||
(name main) | ||
(package cndap) | ||
(libraries cndap logs)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
|
||
open Cndap | ||
|
||
let log_setup (log_path : string option) : unit = | ||
let log_file = Option.value log_path ~default:"/tmp/cn-debug-log.txt" in | ||
let log_channel = Out_channel.open_text log_file in | ||
let formatter = Format.formatter_of_out_channel log_channel in | ||
let reporter = Logs.format_reporter ~app:formatter ~dst:formatter () in | ||
let () = Logs.set_level (Some Logs.Debug) in | ||
let () = Logs.set_reporter reporter in | ||
() | ||
;; | ||
|
||
type options = { log_path : string option } | ||
|
||
let parse_arguments () : options = | ||
let log_file_ref : string option ref = ref None in | ||
let populate r s = r := Some s in | ||
let usage = String.concat " " [ "Usage: cn-debug"; "--log <log-file>" ] in | ||
let arglist = [ "--log", Arg.String (populate log_file_ref), "Path to log file" ] in | ||
let handle_positional _ = () in | ||
let () = Arg.parse arglist handle_positional usage in | ||
{ log_path = !log_file_ref } | ||
;; | ||
|
||
let main () : unit = | ||
let options = parse_arguments () in | ||
log_setup options.log_path; | ||
Adapter.run_stdio () | ||
;; | ||
|
||
let () = main () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This file is generated by dune, edit dune-project instead | ||
opam-version: "2.0" | ||
synopsis: "CN Debug Adapter" | ||
description: "A debug adapter protocol implementation for CN state dumps" | ||
maintainer: ["Sam Cowger" "Kiran Gopinathan"] | ||
authors: ["Sam Cowger" "Kiran Gopinathan"] | ||
depends: [ | ||
"dune" {>= "3.12"} | ||
"ocaml" {>= "4.14.1" & < "6.0.0"} | ||
"base" {>= "v0.16.3" & < "v0.18"} | ||
"cerberus" {= "b9daa22"} | ||
"cerberus-lib" {= "b9daa22"} | ||
"cn" {= "b9daa22"} | ||
"dap" {>= "1.0.6" & < "2.0.0"} | ||
"gillian" {= "0c14d64"} | ||
"logs" {>= "0.7.0" & < "1.0.0"} | ||
"odoc" {with-doc} | ||
] | ||
build: [ | ||
["dune" "subst"] {dev} | ||
[ | ||
"dune" | ||
"build" | ||
"-p" | ||
name | ||
"-j" | ||
jobs | ||
"@install" | ||
"@runtest" {with-test} | ||
"@doc" {with-doc} | ||
] | ||
] | ||
pin-depends: [ | ||
[ | ||
"cerberus.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"cerberus-lib.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"cn.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"gillian.c6802c5" | ||
"git+https://github.com/GillianPlatform/Gillian.git#c6802c5" | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
pin-depends: [ | ||
[ | ||
"cerberus.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"cerberus-lib.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"cn.b9daa22" | ||
"git+https://github.com/rems-project/cerberus.git#b9daa22" | ||
] | ||
[ | ||
"gillian.c6802c5" | ||
"git+https://github.com/GillianPlatform/Gillian.git#c6802c5" | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
(lang dune 3.12) | ||
|
||
(name cndap) | ||
|
||
(generate_opam_files true) | ||
|
||
(authors "Sam Cowger" "Kiran Gopinathan") | ||
|
||
(maintainers "Sam Cowger" "Kiran Gopinathan") | ||
|
||
(package | ||
(name cndap) | ||
(synopsis "CN Debug Adapter") | ||
(description "A debug adapter protocol implementation for CN state dumps") | ||
(depends | ||
dune | ||
(ocaml | ||
(and | ||
(>= 4.14.1) | ||
(< 6.0.0))) | ||
;; | ||
(base | ||
(and | ||
(>= v0.16.3) | ||
(< v0.18))) | ||
(cerberus | ||
(= "b9daa22")) | ||
(cerberus-lib | ||
(= "b9daa22")) | ||
(cn | ||
(= "b9daa22")) | ||
(dap | ||
(and | ||
(>= 1.0.6) | ||
(< 2.0.0))) | ||
(gillian | ||
(= "0c14d64")) | ||
(logs | ||
(and | ||
(>= 0.7.0) | ||
(< 1.0.0))))) |
Oops, something went wrong.