Skip to content

[lldb][Docs] Add page about debugging lldb itself #65332

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

Merged
merged 3 commits into from
Sep 6, 2023

Conversation

DavidSpickett
Copy link
Collaborator

We have docs about how to use lldb on other programs, this tells you how to use lldb on ldlb and lldb-server.

Lacking any Mac experience I've not included any debugserver information apart from stating it will be similar but not the same.

I plan for this page to include sections on debugging tests and other things but this initial commit is purely about the two main binaries involved.

@DavidSpickett
Copy link
Collaborator Author

For some reason I can't add the pr-subscribers-lldb team to this, but maybe I'm not supposed to be able to.

subprocess it's starting for the ``gdbserver`` part. One way is to look at the
list of runninng processes and take the command line from there.

In theory it should be possible to use LLDB's
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This could be user error but the point is preventing people wasting their time on it if it is indeed not possible.

I'd be happy to be proven wrong.

Copy link
Member

@bulbazord bulbazord left a comment

Choose a reason for hiding this comment

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

Generally seems good to me. Thanks for taking the time to write this up.

We have docs about how to use lldb on other programs,
this tells you how to use lldb on ldlb and lldb-server.

Lacking any Mac experience I've not included any debugserver
information apart from stating it will be similar but not
the same.

I plan for this page to include sections on debugging tests
and other things but this initial commit is purely about
the two main binaries involved.
* Renamed page to just "debug", renamed the file.
* Link back to build documentation
* Fix Xcode naming.
* Note assertions option.
@DavidSpickett
Copy link
Collaborator Author

There are some bits missing from this e.g. debugging packet exchanges but I will hold that for another PR.

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.

Thanks for working on this!

@DavidSpickett DavidSpickett merged commit ad2453a into llvm:main Sep 6, 2023
@DavidSpickett DavidSpickett deleted the lldb-docs-debug branch September 6, 2023 15:22
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
We have docs about how to use lldb on other programs, this tells you how
to use lldb on ldlb and lldb-server.

Lacking any Mac experience I've not included any debugserver information
apart from stating it will be similar but not the same.

I plan for this page to include sections on debugging tests and other
things but this initial commit is purely about the two main binaries
involved.
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.

3 participants