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

Debugging status and plan #3

Open
nrc opened this issue May 7, 2017 · 7 comments
Open

Debugging status and plan #3

nrc opened this issue May 7, 2017 · 7 comments

Comments

@nrc
Copy link
Member

nrc commented May 7, 2017

What is the status of debugging Rust programs? How can we improve? Should include tools like profiling which are backed off debuginfo.

@oli-obk
Copy link
Collaborator

oli-obk commented May 17, 2017

miri can be used to debug small programs at the MIR-level. It detects many cases of undefined behaviour. There's also cargo miri which runs miri on all #[test] functions in the library or in the test directory.

@Manishearth
Copy link
Collaborator

I and tromey maintain the gdb rust integration. I would like to work on lldb Rust, but I won't have time till stylo is over.

@fitzgen
Copy link
Collaborator

fitzgen commented May 17, 2017

I think a lot of upstream work needs to funnel into gdb and lldb, I'm constantly running into papercuts using them.

Things like expression evaluation off a bit, setting a breakpoint on a not-fully-qualified function name (and dealing with the hash), etc. I'll try to jot them down as I run into them so that I have something more concrete here.

cc @tromey

@Manishearth
Copy link
Collaborator

The expression evaluation stuff keeps breaking because Rust keeps changing/breaking how it does paths in debuginfo.

@tromey
Copy link
Collaborator

tromey commented May 17, 2017

Here's my plan: https://docs.google.com/document/d/1a2v0ro40vy3z-Np44CF-5v6THH9Huy_Dtp8-aUIdgkM/edit#heading=h.3bhlq7o1wouo

It links to the DWARF binding plan as well. This is what I want to work on, I'm just looking for the time and/or slot in Moz.

@fitzgen either file gdb bugs or just email me and I will file them for you. I work on the gdb rust bugs as time permits.

@Manishearth
Copy link
Collaborator

(cc me on them. I do have time to fix things in gdb. just not to go and do big heaps of work to make lldb work)

@tromey
Copy link
Collaborator

tromey commented May 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants