diff --git a/bin/llvm-krun b/bin/llvm-krun index 822a289bc..b01462dbd 100755 --- a/bin/llvm-krun +++ b/bin/llvm-krun @@ -18,6 +18,7 @@ trap 'cleanup' INT TERM EXIT initializer="LblinitGeneratedTopCell{}" dir=. debug= +debug_command= depth=-1 verbose=0 binary_input=false @@ -64,7 +65,9 @@ Mandatory arguments to long options are mandatory for short options too. KORE format, rather than the textual syntax; -p, --pretty-print Pretty print output configuration. By default, output is in kore syntax - --debug Use GDB to debug program + --debug Use GDB to debug the program + --debug-batch Use GDB in batch mode to debug the program + --debug-command FILE Execute GDB commands from FILE to debug the program --depth INT Execute up to INT steps -i, --initializer INIT Use INIT as the top cell initializer -nm, --no-expand-macros Don't expand macros in initial configuration @@ -156,6 +159,20 @@ do shift; ;; + --debug-command) + debug_command="$2" + if [[ -z $debug ]]; then + debug="gdb -x ${debug_command} --args " + else + debug="${debug/--args /} -x ${debug_command} --args " + fi + shift; + ;; + + --debug-batch) + debug="gdb --batch --args " + ;; + --depth) depth="$2" shift; shift diff --git a/nix/llvm-backend-matching.mavenix.lock b/nix/llvm-backend-matching.mavenix.lock index bb69ca83d..22d2f7ddc 100644 --- a/nix/llvm-backend-matching.mavenix.lock +++ b/nix/llvm-backend-matching.mavenix.lock @@ -246,15 +246,15 @@ "sha1": "fdec6f2d2514787039928bcb781f9e67f4738899" }, { - "path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20230930.025149-29.jar", - "sha1": "04972642a285d27d20767761d593840798a5ffd5" + "path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231003.172436-30.jar", + "sha1": "8c3e43f073c3344e745919b0df8d3dbce36bef81" }, { - "path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20230930.025149-29.pom", + "path": "com/runtimeverification/k/kore/1.0-SNAPSHOT/kore-1.0-20231003.172436-30.pom", "sha1": "2706d868319a03bc491350cb3a1af0927ef1a839" }, { - "path": "com/runtimeverification/k/parent/1.0-SNAPSHOT/parent-1.0-20230930.025126-29.pom", + "path": "com/runtimeverification/k/parent/1.0-SNAPSHOT/parent-1.0-20231003.172408-30.pom", "sha1": "62b92746f9104b7966075e98dc7b69c44475c72c" }, { @@ -5337,11 +5337,11 @@ "groupId": "com.runtimeverification.k", "metas": [ { - "content": "\n\n com.runtimeverification.k\n kore\n 1.0-SNAPSHOT\n \n \n 20230930.025149\n 29\n \n 20230930025149\n \n \n jar\n 1.0-20230930.025149-29\n 20230930025149\n \n \n pom\n 1.0-20230930.025149-29\n 20230930025149\n \n \n \n", + "content": "\n\n com.runtimeverification.k\n kore\n 1.0-SNAPSHOT\n \n \n 20231003.172436\n 30\n \n 20231003172436\n \n \n jar\n 1.0-20231003.172436-30\n 20231003172436\n \n \n pom\n 1.0-20231003.172436-30\n 20231003172436\n \n \n \n", "path": "com/runtimeverification/k/kore/1.0-SNAPSHOT" }, { - "content": "\n\n com.runtimeverification.k\n parent\n 1.0-SNAPSHOT\n \n \n 20230930.025126\n 29\n \n 20230930025126\n \n \n pom\n 1.0-20230930.025126-29\n 20230930025126\n \n \n \n", + "content": "\n\n com.runtimeverification.k\n parent\n 1.0-SNAPSHOT\n \n \n 20231003.172408\n 30\n \n 20231003172408\n \n \n pom\n 1.0-20231003.172408-30\n 20231003172408\n \n \n \n", "path": "com/runtimeverification/k/parent/1.0-SNAPSHOT" } ],