[Lldb-commits] [lldb] [easy] Fix spacing in help message of 'process save-core' command (PR #89445)

2024-04-19 Thread Michael Christensen via lldb-commits
https://github.com/mdko created https://github.com/llvm/llvm-project/pull/89445 Very minor change to help message on `process save-core`. Adds space between two sentences explaining the `-p` option: "Specify a plugin name to create the core file.This allows core files to be saved in different

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-14 Thread Michael Christensen via lldb-commits
mdko wrote: @jimingham @clayborg IIUC I don't have merge permissions, otherwise I'd squash and merge this myself. Please let me know if there's anything I should do at this point. Thanks! https://github.com/llvm/llvm-project/pull/73596 ___ lldb-commi

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-05 Thread Michael Christensen via lldb-commits
@@ -1270,36 +1270,37 @@ enum WatchpointValueKind { }; enum CompletionType { - eNoCompletion = 0u, - eSourceFileCompletion = (1u << 0), - eDiskFileCompletion = (1u << 1), - eDiskDirectoryCompletion = (1u << 2), - eSymbolCompletion = (1u << 3), - eModuleCompletion = (1u <<

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-05 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/7] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-05 Thread Michael Christensen via lldb-commits
mdko wrote: Latest change: * Reverts `eCustomCompletion` to original value * Moves `eThreadIDCompletion` after `eCustomCompletion` * Adds `eTerminatorCompletion` as last value in enum * Sets all values to 64 bit to future-proof it https://github.com/llvm/llvm-project/pull/73596 _

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-05 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/6] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-12-04 Thread Michael Christensen via lldb-commits
@@ -1296,10 +1296,11 @@ enum CompletionType { eRemoteDiskFileCompletion = (1u << 22), eRemoteDiskDirectoryCompletion = (1u << 23), eTypeCategoryNameCompletion = (1u << 24), + eThreadIDCompletion = (1u << 25), mdko wrote: @jimingham What are your thought

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-30 Thread Michael Christensen via lldb-commits
@@ -1296,10 +1296,11 @@ enum CompletionType { eRemoteDiskFileCompletion = (1u << 22), eRemoteDiskDirectoryCompletion = (1u << 23), eTypeCategoryNameCompletion = (1u << 24), + eThreadIDCompletion = (1u << 25), mdko wrote: @clayborg Is there anything spec

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-29 Thread Michael Christensen via lldb-commits
@@ -807,6 +808,23 @@ void CommandCompletions::TypeCategoryNames(CommandInterpreter &interpreter, }); } +void CommandCompletions::ThreadIDs(CommandInterpreter &interpreter, + CompletionRequest &request, +

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-29 Thread Michael Christensen via lldb-commits
mdko wrote: [Latest changes]() update help and usage text, format specifier, add a general thread ID completion mechanism, and use this thread ID completion in the `thread select -t` argument. (If the thread ID completer is satisfactory, I can add it to other ThreadID args in [Options.td](htt

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-29 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/5] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-29 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/4] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
@@ -1165,37 +1208,59 @@ class CommandObjectThreadSelect : public CommandObjectParsed { nullptr); } + Options *GetOptions() override { return &m_option_group; } + protected: void DoExecute(Args &command, CommandReturnObject &result) override { Process *proc

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
https://github.com/mdko edited https://github.com/llvm/llvm-project/pull/73596 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
@@ -1117,6 +1117,11 @@ let Command = "thread plan list" in { Desc<"Display thread plans for unreported threads">; } +let Command = "thread select" in { + def thread_select_thread_id : Option<"thread-id", "t">, Group<2>, +Arg<"ThreadID">, Desc<"Provide a thread ID inst

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
mdko wrote: [Latest changes](https://github.com/llvm/llvm-project/pull/73596/commits/34045b9b2e04e01fed142ad2d7f4503e69646c9f) implement reviewer suggestions: * `thread_id` option is now `thread-id` * This option takes a value rather than causing original argument to be interpreted differentl

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/3] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
https://github.com/mdko updated https://github.com/llvm/llvm-project/pull/73596 >From 97a6e23c85457a14c91c5800fa03bb872e6f1fa6 Mon Sep 17 00:00:00 2001 From: Michael Christensen Date: Mon, 27 Nov 2023 12:49:24 -0800 Subject: [PATCH 1/2] Add option to pass thread ID to thread select command ---

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-28 Thread Michael Christensen via lldb-commits
mdko wrote: @jimingham So it seems that when `-t ` is supplied, the user shouldn't be able to specify a thread index as well, e.g. the following is disallowed: ``` thread select -t 216051 1 ``` Would it make sense then for `thread select` to take two possible mutually exclusive options (`-t `)

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-27 Thread Michael Christensen via lldb-commits
mdko wrote: CC @jeffreytan81 @clayborg https://github.com/llvm/llvm-project/pull/73596 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] Add option to pass thread ID to thread select command (PR #73596)

2023-11-27 Thread Michael Christensen via lldb-commits
https://github.com/mdko created https://github.com/llvm/llvm-project/pull/73596 We'd like a way to select the current thread by its thread ID (rather than its internal LLDB thread index). This PR adds a `-t` option (`--thread_id` long option) that tells the `thread select` command to interpret