Skip to content

suspect bug in emitting debug information #11600

Closed
@alsam

Description

@alsam

small snippet called arg0.rs:

fn main ()
{
    let args : ~[~str] = ::std::os::args();
    ::std::io::println(args[0]);
}
$ rustc -Z debug-info arg0.rs
$ gdb arg0 
GNU gdb (GDB) 7.6.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/asamoilov/work/projects/rust-sandbox/my-rust/arg0...done.
(gdb) l
1   arg0.rc: No such file or directory.
(gdb) quit

i.e. expects arg0.rc instead of arg0.rs

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions