Skip to content

[lldb][Docs] Additions to debuging LLDB page #65635

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 4 commits into from
Sep 8, 2023

Conversation

DavidSpickett
Copy link
Collaborator

Adds the following:

  • A note that you can use attaching to debug the right lldb-server process, though there are drawbacks.
  • A section on debugging the remote protocol.
  • Reducing bugs, including reducing ptrace bugs to remove the need for LLDB.

I've added a standlone ptrace program to the examples folder because:

  • There's no better place to put it.
  • Adding it to the page seems like wasting space, and would be harder to update.
  • I link to Eli Bendersky's classic blog on the subject, but we are safer with our own example as well.
  • Eli's example is for 32 bit Intel, AArch64 is more common these days.
  • It's easier to show the software breakpoint steps in code than explain it (though I still do that in the text).
  • It was living on my laptop not helping anyone so I think it's good to have it upstream for others, including future me.

Adds the following:
* A note that you can use attaching to debug the
  right lldb-server process, though there are drawbacks.
* A section on debugging the remote protocol.
* Reducing bugs, including reducing ptrace bugs to
  remove the need for LLDB.

I've added a standlone ptrace program to the examples
folder because:
* There's no better place to put it.
* Adding it to the page seems like wasting space,
  and would be harder to update.
* I link to Eli Bendersky's classic blog on the
  subject, but we are safer with our own example
  as well.
* Eli's example is for 32 bit Intel, AArch64 is
  more common these days.
* It's easier to show the software breakpoint
  steps in code than explain it (though I still
  do that in the text).
* It was living on my laptop not helping anyone
  so I think it's good to have it upstream
  for others, including future me.
@DavidSpickett DavidSpickett requested a review from a team as a code owner September 7, 2023 16:43
@github-actions github-actions bot added the lldb label Sep 7, 2023
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.

All are excellent tips. Thanks for working on this, this is amazing! 😄

@DavidSpickett DavidSpickett merged commit 3398744 into llvm:main Sep 8, 2023
@DavidSpickett DavidSpickett deleted the lldb-debug-docs branch September 8, 2023 09:05
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.

4 participants