-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
tools: install gdbinit from v8 to $PREFIX/share #2123
Conversation
This was suggested in #2076 (comment) |
@@ -149,6 +149,8 @@ def files(action): | |||
# behave similarly for systemtap | |||
action(['src/node.stp'], 'share/systemtap/tapset/') | |||
|
|||
action(['deps/v8/tools/gdbinit'], 'share/tools/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't /usr/share/node
or /usr/share/doc/node
a more logical place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed. Fixed.
4b66274
to
6aac5d7
Compare
LGTM |
On second thought, I think this should also be added to the |
Done. I am not too familiar with rpm packaging, so PTAL. |
I try to keep them in alphabetical order but that's nitpicking. LGTM. |
gdbinit provided by V8 can be very useful for low-level debugging of crashes in node and in binary addons. Most useful commands at 'jst' for JS stack traces and 'job' for printing a heap object. This patch installs the file at $PREFIX/share/tools/gdbinit.
Fixed. |
gdbinit provided by V8 can be very useful for low-level debugging of crashes in node and in binary addons. Most useful commands at 'jst' for JS stack traces and 'job' for printing a heap object. This patch installs the file at $PREFIX/share/doc/node/gdbinit. Reviewed-By: Ben Noordhuis <[email protected]> PR-URL: #2123
Landed in ee3ce2e. |
gdbinit provided by V8 can be very useful for low-level debugging of crashes in node and in binary addons. Most useful commands at 'jst' for JS stack traces and 'job' for printing a heap object. This patch installs the file at $PREFIX/share/doc/node/gdbinit. Reviewed-By: Ben Noordhuis <[email protected]> PR-URL: nodejs#2123
gdbinit provided by V8 can be very useful for low-level debugging of crashes in node and in binary addons. Most useful commands at 'jst' for JS stack traces and 'job' for printing a heap object.
This patch installs the file at $PREFIX/share/tools/gdbinit making it available on installed Node.js binaries too.
Here's a sample session that uses these gdb macros: https://gist.github.com/ofrobots/0bdcab89771221ace68d