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

cmd/compile: keep variable declaration order in debug_info #31133

Open
dlsniper opened this Issue Mar 29, 2019 · 6 comments

Comments

Projects
None yet
6 participants
@dlsniper
Copy link
Contributor

dlsniper commented Mar 29, 2019

Rather than adding DeclColumn info to debug_info, it would be great to write the variables in the declaration order. This would make it easier to display the variables in a predictable and consistent order while debugging and thus better align with the source code presentation.

@ianlancetaylor

This comment has been minimized.

Copy link
Contributor

ianlancetaylor commented Mar 29, 2019

The issue is labeled debug/dwarf, but are you asking for a change in the debug/dwarf package or a change in the compiler?

@aarzilli

This comment has been minimized.

Copy link
Contributor

aarzilli commented Mar 29, 2019

it's a change to the compiler, it should be labeled cmd/compile.

@dlsniper dlsniper changed the title debug/dwarf: keep variable declaration order in debug_info cmd/compile: keep variable declaration order in debug_info Mar 29, 2019

@dlsniper

This comment has been minimized.

Copy link
Contributor Author

dlsniper commented Mar 29, 2019

Updated, sorry, I don't particularly know these areas. Thank you for the heads-up.

@julieqiu julieqiu added this to the Go1.13 milestone Apr 22, 2019

@julieqiu

This comment has been minimized.

Copy link

julieqiu commented Apr 22, 2019

@randall77

This comment has been minimized.

Copy link
Contributor

randall77 commented Apr 22, 2019

@dr2chase

This comment has been minimized.

Copy link
Contributor

dr2chase commented Apr 22, 2019

I'll give this a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.