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

debug: Add python linking debugging tools #547

Merged
merged 1 commit into from Jan 18, 2019

Conversation

Profpatsch
Copy link
Contributor

rules_haskell development features a large amount of varying fun
with different dynamic linking problems. These python helpers shall
make debugging them less noisy, and more programmatic and to the
point.

We can’t put them in the tools/ directory because of the problem
mentioned now in tools/README.md.

@Profpatsch Profpatsch requested a review from guibou January 7, 2019 23:39
`rules_haskell` development features a large amount of varying fun
with different dynamic linking problems. These python helpers shall
make debugging them less noisy, and more programmatic and to the
point.

We can’t put them in the `tools/` directory because of the problem
mentioned now in tools/README.md.
@Profpatsch Profpatsch force-pushed the python-linking-debugging-tools branch from 4e1b84d to 7b503b4 Compare January 8, 2019 14:27
Copy link
Member

@mboes mboes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we reimplementing lddtree?

@guibou
Copy link
Contributor

guibou commented Jan 12, 2019

@mboes I think that @Profpatsch implementation of "lddtree" is more versatile for us because it allows the filtering of stuffs such as unimportant rpath such as nix ones.

@mboes
Copy link
Member

mboes commented Jan 14, 2019

Could you provide an example use case? I am worried that this is a lot of extra code to maintain just to get the equivalent of lddtree | grep. So this solution would have to be more powerful. For that matter, more so than

$ lddtree -a /path/to/bin/foo | sed "s/ l/- l/" > /tmp/ldd.org
$ emacs /tmp/ldd.org

Emacs org-mode will let you fold/unfold subtrees and filter according to whatever criteria you like.

@mboes mboes merged commit febef11 into master Jan 18, 2019
@mboes mboes deleted the python-linking-debugging-tools branch January 18, 2019 19:44
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

Successfully merging this pull request may close these issues.

None yet

3 participants