Skip to content

Remove the omit_gdb_pretty_printer_section attribute - #144738

Merged
bors merged 1 commit into
rust-lang:masterfrom
bjorn3:remove_omit_gdb_pretty_printer_section
Aug 4, 2025
Merged

Remove the omit_gdb_pretty_printer_section attribute#144738
bors merged 1 commit into
rust-lang:masterfrom
bjorn3:remove_omit_gdb_pretty_printer_section

Conversation

@bjorn3

Copy link
Copy Markdown
Member

Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @lcnr

rustbot has assigned @lcnr.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbotrustbot added A-attributes Area: Attributes (`#[…]`, `#![…]`) A-compiletest Area: The compiletest test runner A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 31, 2025
@bjorn3

Copy link
Copy Markdown
MemberAuthor

cc #143679 (comment)

@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in compiler/rustc_attr_parsing

cc @jdonszelmann

Some changes occurred in src/tools/compiletest

cc @jieyouxu

Some changes occurred in compiler/rustc_attr_data_structures

cc @jdonszelmann

Some changes occurred in compiler/rustc_passes/src/check_attr.rs

cc @jdonszelmann

@bjorn3
bjorn3force-pushed the remove_omit_gdb_pretty_printer_section branch from c76e848 to 6ecc1c3CompareJuly 31, 2025 14:58
@bjorn3

Copy link
Copy Markdown
MemberAuthor

Almost all tests pass without //@ no-debug-pretty-printers, but I kept them just in case it is actually load bearing for some tests.

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, one doc request

Comment threadsrc/tools/compiletest/src/runtest/debuginfo.rs Outdated
@jieyouxu

Copy link
Copy Markdown
Member

r? jieyouxu

@rustbotrustbot assigned jieyouxu and unassigned lcnrJul 31, 2025
@jieyouxu

Copy link
Copy Markdown
Member

@rustbot author

@rustbotrustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. A-rustc-dev-guide Area: rustc-dev-guide and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 31, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes.

cc @BoxyUwU, @jieyouxu, @Kobzol, @tshepang

@bjorn3

Copy link
Copy Markdown
MemberAuthor

@rustbot ready

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jul 31, 2025
@jieyouxu

Copy link
Copy Markdown
Member

Thanks, you can r=me after PR CI is green.

@bjorn3bjorn3 mentioned this pull request Jul 31, 2025
@bjorn3

Copy link
Copy Markdown
MemberAuthor

@bors r=jieyouxu

@bors

bors commented Jul 31, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit d8ee663 has been approved by jieyouxu

It is now in the queue for this repository.

rust-borsBot added a commit that referenced this pull request Aug 1, 2025
…, r=<try>
Remove the omit_gdb_pretty_printer_section attribute
try-job: aarch64-apple
@rust-bors

rust-borsBot commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

⌛ Trying commit cd8ad69 with merge d8e8166

To cancel the try build, run the command @bors try cancel.

@rust-bors

rust-borsBot commented Aug 1, 2025

Copy link
Copy Markdown
Contributor

☀️ Try build successful (CI)
Build commit: d8e8166 (d8e816683a8fbdbe659206e25da866730fc2d6e9, parent: 4b55fe199cfe9c710555a5af7f2a49491ad38254)

@bjorn3
bjorn3force-pushed the remove_omit_gdb_pretty_printer_section branch from cd8ad69 to 3d234c7CompareAugust 1, 2025 20:03
@rustbot

Copy link
Copy Markdown
Collaborator

Unknown labels: T-bootstrap, A-LLVM, A-attributes, A-testsuite, A-rustc-dev-guide, A-compiletest

Disabling loading of pretty printers in the debugger itself is more
reliable. Before this commit the .gdb_debug_scripts section couldn't be
included in dylibs or rlibs as otherwise there is no way to disable the
section anymore without recompiling the entire standard library.
@bjorn3
bjorn3force-pushed the remove_omit_gdb_pretty_printer_section branch from 3d234c7 to ae2f8d9CompareAugust 1, 2025 20:05
@rustbot

Copy link
Copy Markdown
Collaborator

Unknown labels: A-attributes, A-testsuite, A-compiletest, T-bootstrap, A-rustc-dev-guide, A-LLVM

@bjorn3

Copy link
Copy Markdown
MemberAuthor

Turns out the tests were expecting pretty printers to always be on for LLDB. I've made the test directive only apply to GDB and renamed it accordingly.

@bjorn3

Copy link
Copy Markdown
MemberAuthor

@rustbot ready

@jieyouxujieyouxu added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 2, 2025

@jieyouxujieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks

@jieyouxu

Copy link
Copy Markdown
Member

Normally I would bump the p on this PR because it has a lot of test changes and so is conflict-prone, but there's quite a few backports / release process PRs in queue so I didn't want to do that.

@bors r+

@bors

bors commented Aug 2, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit ae2f8d9 has been approved by jieyouxu

It is now in the queue for this repository.

@borsbors 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 Aug 2, 2025
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
…ter_section, r=jieyouxu
Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
…ter_section, r=jieyouxu
Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 11 pull requests
Successful merges:
- #142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- #144650 (Additional tce tests)
- #144738 (Remove the omit_gdb_pretty_printer_section attribute)
- #144790 (Multiple bounds checking elision failures)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
- #144843 (Weekly `cargo update`)
Failed merges:
- #144794 (Port `#[coroutine]` to the new attribute system)
r? `@ghost`
`@rustbot` modify labels: rollup
samueltardieu added a commit to samueltardieu/rust that referenced this pull request Aug 3, 2025
…ter_section, r=jieyouxu
Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
This was referenced Aug 3, 2025
bors added a commit that referenced this pull request Aug 3, 2025
Rollup of 12 pull requests
Successful merges:
- #142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- #144070 (Implement `hash_map` macro )
- #144738 (Remove the omit_gdb_pretty_printer_section attribute)
- #144790 (Multiple bounds checking elision failures)
- #144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- #144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- #144816 (Update E0562 to account for the new impl trait positions)
- #144822 (Return a struct with named fields from `hash_owner_nodes`)
- #144824 (Updated test links in compiler)
- #144829 (Use full flag name in strip command for Darwin)
- #144843 (Weekly `cargo update`)
- #144851 (Forbid tail calling intrinsics)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 3823f0b into rust-lang:masterAug 4, 2025
10 checks passed
@rustbotrustbot added this to the 1.91.0 milestone Aug 4, 2025
rust-timer added a commit that referenced this pull request Aug 4, 2025
Rollup merge of #144738 - bjorn3:remove_omit_gdb_pretty_printer_section, r=jieyouxu
Remove the omit_gdb_pretty_printer_section attribute
Disabling loading of pretty printers in the debugger itself is more reliable. Before this commit the .gdb_debug_scripts section couldn't be included in dylibs or rlibs as otherwise there is no way to disable the section anymore without recompiling the entire standard library.
github-actionsBot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request Aug 4, 2025
Rollup of 12 pull requests
Successful merges:
- rust-lang/rust#142678 (Misc cleanups of `generic_arg_infer` related HIR logic)
- rust-lang/rust#144070 (Implement `hash_map` macro )
- rust-lang/rust#144738 (Remove the omit_gdb_pretty_printer_section attribute)
- rust-lang/rust#144790 (Multiple bounds checking elision failures)
- rust-lang/rust#144805 (compiletest: Preliminary cleanup of `ProcRes` printing/unwinding)
- rust-lang/rust#144808 (`Interner` arg to `EarlyBinder` does not affect auto traits)
- rust-lang/rust#144816 (Update E0562 to account for the new impl trait positions)
- rust-lang/rust#144822 (Return a struct with named fields from `hash_owner_nodes`)
- rust-lang/rust#144824 (Updated test links in compiler)
- rust-lang/rust#144829 (Use full flag name in strip command for Darwin)
- rust-lang/rust#144843 (Weekly `cargo update`)
- rust-lang/rust#144851 (Forbid tail calling intrinsics)
r? `@ghost`
`@rustbot` modify labels: rollup
@bjorn3
bjorn3 deleted the remove_omit_gdb_pretty_printer_section branch August 4, 2025 07:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-attributesArea: Attributes (`#[…]`, `#![…]`)A-compiletestArea: The compiletest test runnerA-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-rustc-dev-guideArea: rustc-dev-guideA-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@bjorn3@rustbot@jieyouxu@bors@GuillaumeGomez@lcnr