0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

tools: install gdbinit from v8 to $PREFIX/share

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: https://github.com/nodejs/io.js/pull/2123
This commit is contained in:
Ali Ijaz Sheikh 2015-07-06 09:41:04 -07:00
parent 180fd392ca
commit ee3ce2ed88
2 changed files with 6 additions and 0 deletions

View File

@ -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:

View File

@ -93,6 +93,7 @@ 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}/
@ -100,6 +101,9 @@ done
%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