<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        error: line not found in debugger output: static void [...]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 /home/cmr/hacking/rust/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);"><pre class="notranslate"><code class="notranslate">        error: line not found in debugger output: static void [...]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 /home/cmr/hacking/rust/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);
</code></pre></div>
<p dir="auto">I think this might be because my terminal is too wide, or perhaps gdb version differences?</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michaelwoerister/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michaelwoerister">@michaelwoerister</a></p>
<p dir="auto">Apparently new versions of gdb (I'm seeing this with 7.7) changed the output of of <code class="notranslate">info functions</code>.<br>
E.g. instead of <code class="notranslate">static void limited-debuginfo::main();</code> it now outputs <code class="notranslate">static void limited-debuginfo::main(void);</code>.</p>
<p dir="auto">Output is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---- [debug-info] debug-info/limited-debuginfo.rs stdout ----

    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:
    0x0000000000400880  _init
    0x00000000004008b0  uvio::new_loop::h616534f7e6ab76adGIa::v0.10.pre@plt
    0x00000000004008c0  __libc_start_main@plt
    0x00000000004008d0  __gmon_start__@plt
    0x00000000004008e0  rust_stack_exhausted@plt
    0x00000000004008f0  lang_start::hf9e7230acaab0452Bwc::v0.10.pre@plt
    0x0000000000400900  _start
    0x0000000000400930  deregister_tm_clones
    0x0000000000400960  register_tm_clones
    0x00000000004009a0  __do_global_dtors_aux
    0x00000000004009c0  frame_dummy
    0x0000000000400b70  __libc_csu_init
    0x0000000000400be0  __libc_csu_fini
    0x0000000000400be4  __morestack
    0x0000000000400bf4  _fini
    Breakpoint 1 at 0x400b00: 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 &quot;/usr/lib/libthread_db.so.1&quot;.
    [New Thread 0x7ffff7f56700 (LWP 5320)]
    [New Thread 0x7ffff625c700 (LWP 5323)]
    [New Thread 0x7ffff615b700 (LWP 5324)]
    [New Thread 0x7ffff605a700 (LWP 5325)]
    [New Thread 0x7ffff5f59700 (LWP 5326)]
    [New Thread 0x7ffff5e58700 (LWP 5327)]
    [New Thread 0x7ffff5d57700 (LWP 5328)]
    [New Thread 0x7ffff5c56700 (LWP 5329)]
    [Switching to Thread 0x7ffff7f56700 (LWP 5320)]

    Breakpoint 1, limited-debuginfo::zzz () at src/test/debug-info/limited-debuginfo.rs:44
    44  fn zzz() {()}
    0x0000000000400af1 in limited-debuginfo::some_function () at src/test/debug-info/limited-debuginfo.rs:49
    49      zzz();
    No locals.
    [Thread 0x7ffff7f56700 (LWP 5320) exited]
    [Thread 0x7ffff605a700 (LWP 5325) exited]
    [Thread 0x7ffff615b700 (LWP 5324) exited]
    [Thread 0x7ffff5c56700 (LWP 5329) exited]
    [Thread 0x7ffff5d57700 (LWP 5328) exited]
    [Thread 0x7ffff5e58700 (LWP 5327) exited]
    [Thread 0x7ffff625c700 (LWP 5323) exited]
    [Thread 0x7ffff5f59700 (LWP 5326) exited]
    [Inferior 1 (process 5280) exited normally]

    ------------------------------------------
    stderr:
    ------------------------------------------
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need &quot;set solib-search-path&quot; or &quot;set sysroot&quot;?

    ------------------------------------------

    task '[debug-info] debug-info/limited-debuginfo.rs' failed at 'explicit failure', /home/florian/devel/rust/src/compiletest/runtest.rs:950"><pre class="notranslate"><code class="notranslate">---- [debug-info] debug-info/limited-debuginfo.rs stdout ----

    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:
    0x0000000000400880  _init
    0x00000000004008b0  uvio::new_loop::h616534f7e6ab76adGIa::v0.10.pre@plt
    0x00000000004008c0  __libc_start_main@plt
    0x00000000004008d0  __gmon_start__@plt
    0x00000000004008e0  rust_stack_exhausted@plt
    0x00000000004008f0  lang_start::hf9e7230acaab0452Bwc::v0.10.pre@plt
    0x0000000000400900  _start
    0x0000000000400930  deregister_tm_clones
    0x0000000000400960  register_tm_clones
    0x00000000004009a0  __do_global_dtors_aux
    0x00000000004009c0  frame_dummy
    0x0000000000400b70  __libc_csu_init
    0x0000000000400be0  __libc_csu_fini
    0x0000000000400be4  __morestack
    0x0000000000400bf4  _fini
    Breakpoint 1 at 0x400b00: 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 0x7ffff7f56700 (LWP 5320)]
    [New Thread 0x7ffff625c700 (LWP 5323)]
    [New Thread 0x7ffff615b700 (LWP 5324)]
    [New Thread 0x7ffff605a700 (LWP 5325)]
    [New Thread 0x7ffff5f59700 (LWP 5326)]
    [New Thread 0x7ffff5e58700 (LWP 5327)]
    [New Thread 0x7ffff5d57700 (LWP 5328)]
    [New Thread 0x7ffff5c56700 (LWP 5329)]
    [Switching to Thread 0x7ffff7f56700 (LWP 5320)]

    Breakpoint 1, limited-debuginfo::zzz () at src/test/debug-info/limited-debuginfo.rs:44
    44  fn zzz() {()}
    0x0000000000400af1 in limited-debuginfo::some_function () at src/test/debug-info/limited-debuginfo.rs:49
    49      zzz();
    No locals.
    [Thread 0x7ffff7f56700 (LWP 5320) exited]
    [Thread 0x7ffff605a700 (LWP 5325) exited]
    [Thread 0x7ffff615b700 (LWP 5324) exited]
    [Thread 0x7ffff5c56700 (LWP 5329) exited]
    [Thread 0x7ffff5d57700 (LWP 5328) exited]
    [Thread 0x7ffff5e58700 (LWP 5327) exited]
    [Thread 0x7ffff625c700 (LWP 5323) exited]
    [Thread 0x7ffff5f59700 (LWP 5326) exited]
    [Inferior 1 (process 5280) exited normally]

    ------------------------------------------
    stderr:
    ------------------------------------------
    warning: Could not load shared library symbols for linux-vdso.so.1.
    Do you need "set solib-search-path" or "set sysroot"?

    ------------------------------------------

    task '[debug-info] debug-info/limited-debuginfo.rs' failed at 'explicit failure', /home/florian/devel/rust/src/compiletest/runtest.rs:950
</code></pre></div>