Skip to content

Commit 27f9ee3

Browse files
committed
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/tools/gdbinit.
1 parent f52d733 commit 27f9ee3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tools/install.py

+2
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def files(action):
149149
# behave similarly for systemtap
150150
action(['src/node.stp'], 'share/systemtap/tapset/')
151151

152+
action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
153+
152154
if 'freebsd' in sys.platform or 'openbsd' in sys.platform:
153155
action(['doc/iojs.1'], 'man/man1/')
154156
else:

tools/rpm/iojs.spec

+4
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,17 @@ done
9393
/usr/bin/*
9494
/usr/include/*
9595
/usr/lib/node_modules/
96+
/usr/share/doc/node/gdbinit
9697
/usr/share/man/man1/iojs.1.gz
9798
/usr/share/systemtap/tapset/node.stp
9899
%{_datadir}/%{name}/
99100
%doc CHANGELOG.md LICENSE README.md
100101

101102

102103
%changelog
104+
* Tue Jul 7 2015 Ali Ijaz Sheikh <ofrobots@google.com>
105+
- Added gdbinit.
106+
103107
* Mon Apr 13 2015 Dan Varga <danvarga@gmail.com>
104108
- Fix paths for changelog and manpage
105109

0 commit comments

Comments
 (0)