]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #5824 : bleibig/rust/debuginfo, r=brson
authorbors <bors@rust-lang.org>
Fri, 19 Apr 2013 19:03:49 +0000 (12:03 -0700)
committerbors <bors@rust-lang.org>
Fri, 19 Apr 2013 19:03:49 +0000 (12:03 -0700)
This adds debugging symbol generation for boxes, bare functions, vectors, and strings, along with a tests for boxes and vectors.

Note that gdb will see them as their actual compiled representation with the refcount, tydesc, etc. fields, so if `b` refers to box, `b->boxed` will refer to its value. Also, since you seem to use the [C struct hack](http://c-faq.com/struct/structhack.html) for dynamic vectors, you won't be able to print out the whole vector at once, only one element at a time by indexing specific elements.

1  2 
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/debuginfo.rs

Simple merge