6

Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required `...

 1 year ago
source link: https://github.com/rust-lang/rust/pull/111962
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required rust-gdb #111962

Conversation

Contributor

Fixes #111961

Makes the Python pretty printer library source'able from within GDB after spawn, making the wrapper script rust-gdb become not the required approach to use the pretty printer library.

Allows for integration into GUI:s that wrap GDB extremely easy. The previous design complicates this feature.

Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

rustbot

added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label

May 25, 2023

Just a nitpick: this could use a better title, something that describes what it does (see other PR titles for example). Then the "Fixes ###" part can be put in the PR description body, which will link to it and close the issue when this PR merges.

theIDinside

changed the title Fix #111961

Make GDB Python Pretty Printers loadable after spawning GDB, avoiding required rust-gdb

May 25, 2023

Contributor

Author

Just a nitpick: this could use a better title, something that describes what it does (see other PR titles for example). Then the "Fixes ###" part can be put in the PR description body, which will link to it and close the issue when this PR merges.

Thanks! Fixed that.

Contributor

I understand it outmodes rust-gdb, but it does not break it, correct?

"defunct" is a word that can be interpreted both ways.

Contributor

Author

I understand it outmodes rust-gdb, but it does not break it, correct?

"defunct" is a word that can be interpreted both ways.

You are correct. Terribly poor phrasing by me. Will be changed.

Contributor

It might be a phrasing that can invite confusion, but I wouldn't call it "terribly poor" at all! Many of the ways you could put it have that dual meaning, tilting towards one, with more or less squinting required to interpret it as the other meaning based on context.

Contributor

@pnkfelix this would let Pernosco load these features in the embedded gdb too

theIDinside reacted with thumbs up emoji

r=me with commits squashed

Contributor

Author

r=me with commits squashed

I'm not sure I did that right?

@bors r+ rollup

The approval doesn't go in the commit, it needs to be done by one of the reviewer team members. But this is fine.

Contributor

pushpin Commit c5145dc has been approved by Mark-Simulacrum

It is now in the queue for this repository.

bors

added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

labels

Jun 5, 2023

bors

merged commit 29871d5 into

rust-lang:master

Jun 6, 2023

11 checks passed

rustbot

added this to the 1.72.0 milestone

Jun 6, 2023

rust-timer

added a commit to rust-lang-ci/rust that referenced this pull request

Jun 6, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

tromey

tromey left review comments

clubby789

clubby789 left review comments
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects

None yet

Milestone

1.72.0

Development

Successfully merging this pull request may close these issues.

GDB Usage unnecessarily requires rust-gdb (PR Provided)

9 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK