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

debug-info/limited-debuginfo.rs fails with gdb 7.7 #12790

Closed
thestinger opened this issue Mar 9, 2014 · 1 comment
Closed

debug-info/limited-debuginfo.rs fails with gdb 7.7 #12790

thestinger opened this issue Mar 9, 2014 · 1 comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)

Comments

@thestinger
Copy link
Contributor

    error: line not found in debugger output: static void limited-debuginfo::main();
    command: gdb -quiet -batch -nx -command=x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.debugger.script x86_64-unknown-linux-gnu/test/debug-info/limited-debuginfo.stage2-x86_64-unknown-linux-gnu
    stdout:
    ------------------------------------------
    All defined functions:

    File src/test/debug-info/limited-debuginfo.rs:
    static void limited-debuginfo::main(void);
    static void limited-debuginfo::some_function(void);
    static void limited-debuginfo::some_other_function(void);
    static void limited-debuginfo::zzz(void);

    Non-debugging symbols:
    0x00000000004007a8  _init
    0x00000000004007e0  __libc_start_main@plt
    0x00000000004007f0  __gmon_start__@plt
    0x0000000000400800  rust_stack_exhausted@plt
    0x0000000000400810  uvio::new_loop::hdae0a67fcace6484GIa::v0.10.pre@plt
    0x0000000000400820  lang_start::h54698a3875703cddBwc::v0.10.pre@plt
    0x0000000000400830  _start
    0x0000000000400860  deregister_tm_clones
    0x0000000000400890  register_tm_clones
    0x00000000004008d0  __do_global_dtors_aux
    0x00000000004008f0  frame_dummy
    0x0000000000400aa0  __libc_csu_init
    0x0000000000400b10  __libc_csu_fini
    0x0000000000400b14  __morestack
    0x0000000000400b24  _fini
    Breakpoint 1 at 0x400a30: file src/test/debug-info/limited-debuginfo.rs, line 44.
    static void limited-debuginfo::zzz(void);
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/usr/lib/libthread_db.so.1".
    [New Thread 0x7ffff7f71700 (LWP 32165)]
    [New Thread 0x7ffff6268700 (LWP 32166)]
    [New Thread 0x7ffff6167700 (LWP 32167)]
    [New Thread 0x7ffff6066700 (LWP 32168)]
    [Switching to Thread 0x7ffff7f71700 (LWP 32165)]

    Breakpoint 1, limited-debuginfo::zzz () at src/test/debug-info/limited-debuginfo.rs:44
    44  fn zzz() {()}
    0x0000000000400a21 in limited-debuginfo::some_function () at src/test/debug-info/limited-debuginfo.rs:49
    49      zzz();
    No locals.
    [Thread 0x7ffff6268700 (LWP 32166) exited]
    [Thread 0x7ffff7f71700 (LWP 32165) exited]
    [Thread 0x7ffff6167700 (LWP 32167) exited]
    [Thread 0x7ffff7fd3740 (LWP 32152) exited]
    [Inferior 1 (process 32152) exited normally]
@luqmana
Copy link
Member

luqmana commented Mar 9, 2014

Dupe of #12787.

@luqmana luqmana closed this as completed Mar 9, 2014
fasterthanlime pushed a commit to fasterthanlime/rust that referenced this issue Jul 22, 2022
fix: Insert `pub(crate)` after doc comments and attribute macros

Fixes rust-lang#12790

Original behavior was to insert `pub(crate)` at the `first_child_or_token`, which for an item with a comment or attribute macro, would put the visibility marker before the comment or macro, instead of after.

This merge request alters the call to find the node with appropriate `SyntaxKind` in the `children_or_tokens`. It also adds a test case to the module to verify the behavior. Test case verifies function, module, records, enum, impl, trait, and type cases.
flip1995 pushed a commit to flip1995/rust that referenced this issue May 17, 2024
Fix rust-lang#12760

Fix rust-lang#12760

```
changelog: [missing_panics_doc]: Ignore panics in compile time
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants