提交 d4f71323 编写于 作者: Y YiLin.Li 提交者: jia zhang

rune/libenclave/skeleton: support the `debug` arg.

Signed-off-by: NYilin Li <YiLin.Li@linux.alibaba.com>
上级 e37be9ed
......@@ -38,6 +38,7 @@ static bool initialized = false;
static char *sgx_dev_path;
static bool no_sgx_flc = false;
static bool enclave_debug = true;
bool debugging = false;
bool is_oot_driver;
/*
* For SGX in-tree driver, dev_fd cannot be closed until an enclave instance
......@@ -377,6 +378,8 @@ static void check_opts(const char *opt)
{
if (!strcmp(opt, "no-sgx-flc"))
no_sgx_flc = true;
else if (!strcmp(opt, "debug"))
debugging = true;
}
static void parse_args(const char *args)
......
......@@ -4,6 +4,7 @@
#include <stdbool.h>
extern bool is_oot_driver;
extern bool debugging;
typedef struct {
const char *args;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册