Skip to content

Commit

Permalink
tools: install gdbinit from v8 to $PREFIX/share
Browse files Browse the repository at this point in the history
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 <info@bnoordhuis.nl>
PR-URL: #2123
  • Loading branch information
ofrobots committed Jul 7, 2015
1 parent 180fd39 commit ee3ce2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def files(action):
# behave similarly for systemtap
action(['src/node.stp'], 'share/systemtap/tapset/')

action(['deps/v8/tools/gdbinit'], 'share/doc/node/')

if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
action(['doc/iojs.1'], 'man/man1/')
else:
Expand Down
4 changes: 4 additions & 0 deletions tools/rpm/iojs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,17 @@ done
/usr/bin/*
/usr/include/*
/usr/lib/node_modules/
/usr/share/doc/node/gdbinit
/usr/share/man/man1/iojs.1.gz
/usr/share/systemtap/tapset/node.stp
%{_datadir}/%{name}/
%doc CHANGELOG.md LICENSE README.md


%changelog
* Tue Jul 7 2015 Ali Ijaz Sheikh <ofrobots@google.com>
- Added gdbinit.

* Mon Apr 13 2015 Dan Varga <danvarga@gmail.com>
- Fix paths for changelog and manpage

Expand Down

0 comments on commit ee3ce2e

Please sign in to comment.