From d313c46c279ab50a281ff58a42fb4cb4eeadf25b Mon Sep 17 00:00:00 2001 From: Vishant Prabhakaran Date: Fri, 29 Sep 2023 22:48:01 -0400 Subject: [PATCH] Add "v8 version" subcommand to llnode Fixes: https://github.com/nodejs/llnode/issues/194 --- binding.gyp | 1 + src/llnode.cc | 10 ++++++++++ src/llnode.h | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/binding.gyp b/binding.gyp index 1ca15925..ae225c8b 100644 --- a/binding.gyp +++ b/binding.gyp @@ -62,6 +62,7 @@ "src/node-constants.cc", "src/settings.cc", ], + "cflags": [ '-DLLNODE_VERSION=SetColor("auto"); diff --git a/src/llnode.h b/src/llnode.h index 5a02425f..b7d6cf86 100644 --- a/src/llnode.h +++ b/src/llnode.h @@ -100,6 +100,12 @@ class GetActiveRequestsCmd : public WorkqueueCmd { std::string GetResultMessage(node::Environment* env, Error& err) override; }; +class GetLLNodeVersionCmd : public CommandBase { + public: + bool DoExecute(lldb::SBDebugger d, char** cmd, + lldb::SBCommandReturnObject& result) override; +}; + } // namespace llnode