From ee3ce2ed88bcb605d611a915f9b86163cc781a7f Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Mon, 6 Jul 2015 09:41:04 -0700 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/io.js/pull/2123 --- tools/install.py | 2 ++ tools/rpm/iojs.spec | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/tools/install.py b/tools/install.py index 4bacaadc4a92b9..998ad6fbf58245 100755 --- a/tools/install.py +++ b/tools/install.py @@ -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: diff --git a/tools/rpm/iojs.spec b/tools/rpm/iojs.spec index 07db8d21a00d14..4be798f19f0a44 100644 --- a/tools/rpm/iojs.spec +++ b/tools/rpm/iojs.spec @@ -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 +- Added gdbinit. + * Mon Apr 13 2015 Dan Varga - Fix paths for changelog and manpage