Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lldb/crashlog] Update incorrect help message for --no-crashed-only option #91162

Merged
merged 1 commit into from
May 9, 2024

Conversation

medismailben
Copy link
Member

This patch rephrases the crashlog --no-crashed-only option help message. This option is mainly used in batch mode to symbolicate and dump all the threads backtraces, instead of only doing it for the crashed thread which is the default behavior.

rdar://127391524

… option

This patch rephrases the crashlog `--no-crashed-only` option help
message. This option is mainly used in batch mode to symbolicate and
dump all the threads backtraces, instead of only doing it for the
crashed thread which is the default behavior.

rdar://127391524

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
@llvmbot
Copy link
Collaborator

llvmbot commented May 6, 2024

@llvm/pr-subscribers-lldb

Author: Med Ismail Bennani (medismailben)

Changes

This patch rephrases the crashlog --no-crashed-only option help message. This option is mainly used in batch mode to symbolicate and dump all the threads backtraces, instead of only doing it for the crashed thread which is the default behavior.

rdar://127391524


Full diff: https://github.com/llvm/llvm-project/pull/91162.diff

1 Files Affected:

  • (modified) lldb/examples/python/crashlog.py (+2-1)
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index c992348b24be17..cdcf6ffc593daf 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1631,7 +1631,8 @@ def CreateSymbolicateCrashLogOptions(
         "--no-crashed-only",
         action="store_false",
         dest="crashed_only",
-        help="do not symbolicate the crashed thread",
+        help="in batch mode, symbolicate all threads, not only the crashed one",
+        default=False,
     )
     arg_parser.add_argument(
         "--disasm-depth",

Copy link
Member

@JDevlieghere JDevlieghere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're already using argparse, can we use the BooleanOptionalAction to make this work automatically with the affirmative option? https://docs.python.org/3.9/library/argparse.html#action

@medismailben
Copy link
Member Author

Since we're already using argparse, can we use the BooleanOptionalAction to make this work automatically with the affirmative option? https://docs.python.org/3.9/library/argparse.html#action

I did that originally but I had to comment it out in 446abb5 because some testbot didn't satisfy the minimal python version requirement for BooleanOptionalAction. We could revert that commit and see if it breaks any bot.

@medismailben medismailben merged commit 8585bf7 into llvm:main May 9, 2024
6 checks passed
medismailben added a commit to medismailben/llvm-project that referenced this pull request May 14, 2024
… option (llvm#91162)

This patch rephrases the crashlog `--no-crashed-only` option help
message. This option is mainly used in batch mode to symbolicate and
dump all the threads backtraces, instead of only doing it for the
crashed thread which is the default behavior.

rdar://127391524

Signed-off-by: Med Ismail Bennani <ismail@bennani.ma>
(cherry picked from commit 8585bf7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants