Re: [rust-dev] Using gdb on rust

2014-05-20 Thread Ricardo Brandão
Hi Isaac: Find below the output: $ cat h.rs fn main() { let ric = "Ricardo"; println!("Hello {}!", ric); } $ rustc -g h.rs $ gdb h GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free so

Re: [rust-dev] Using gdb on rust

2014-05-20 Thread Eric Christopher
> Type "apropos word" to search for commands related to "word"... > Reading symbols from h... > warning: `/Users/rbrandao/Google Drive/PrgRust/Tutorial/h.o': can't open to > read symbols: No such file or directory. > This seems bad. Does the file exist in that path? > warning: can't find symbol '

Re: [rust-dev] Using gdb on rust

2014-05-20 Thread Ricardo Brandão
Eric, I tried lldb with rust: You can notice that it runs, but I could not set breakpoint, Anyway is not a problem work with Ubuntu on my VirtualBox, but could be nice have another option. :) Thanks $ lldb ./h Current executable set to './h' (x86_64). (lldb) b -l 5 error: No selected frame to

Re: [rust-dev] Using gdb on rust

2014-05-20 Thread Eric Christopher
On Tue, May 20, 2014 at 11:26 AM, Ricardo Brandão wrote: > Eric, > > I tried lldb with rust: > > You can notice that it runs, but I could not set breakpoint, > > Anyway is not a problem work with Ubuntu on my VirtualBox, but could be nice > have another option. :) > > Thanks > > $ lldb ./h > Curre

Re: [rust-dev] Using gdb on rust

2014-05-20 Thread Ricardo Brandão
Yes Eric, Definitely I think Mac OSX is not the better OS to work with. I already faced some issues to build Firefox OS, and now to run debug. And I don't have these kind of problems on Ubuntu. As I am not an expert on gcc, gdb and these stuffs, I think is better continue using Ubuntu, at least

[rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Masanori Ogino
Hello. I found that the Reference Manual uses the term "owning pointer", the Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned box". Which term is canonical today? -- Masanori Ogino http://twitter.com/omasanori http://gplus.to/omasanori

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Daniel Micay
On 20/05/14 06:45 PM, Masanori Ogino wrote: > Hello. > > I found that the Reference Manual uses the term "owning pointer", the > Pointer Guide and liballoc do "owned pointer" and Tutorial does "owned box". > > Which term is canonical today? > > -- > Masanori Ogino mailto:masanori.og...@gmail.co

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Corey Richardson
See https://github.com/mozilla/rust/wiki/The-Rusticon for an up-to-date glossary and syntax reference. On Tue, May 20, 2014 at 3:59 PM, Daniel Micay wrote: > On 20/05/14 06:45 PM, Masanori Ogino wrote: >> Hello. >> >> I found that the Reference Manual uses the term "owning pointer", the >> Pointe

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Liigo Zhuang
Could you show us the memory layout of Box? Thank you! 2014年5月21日 上午6:59于 "Daniel Micay" 写道: > On 20/05/14 06:45 PM, Masanori Ogino wrote: > > Hello. > > > > I found that the Reference Manual uses the term "owning pointer", the > > Pointer Guide and liballoc do "owned pointer" and Tutorial does "

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Daniel Micay
On 20/05/14 07:41 PM, Liigo Zhuang wrote: > Could you show us the memory layout of Box? Thank you! The memory layout is just a pointer to a dynamic allocation with the size of the value. Providing the dynamic allocation is up to the default allocator, which is jemalloc right now. signature.asc

Re: [rust-dev] owned pointer vs. owning pointer vs. owned box

2014-05-20 Thread Masanori Ogino
Thank you very much. So, does the Pointer Guide need to be updated? -- Masanori Ogino http://twitter.com/omasanori http://gplus.to/omasanori ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev