rename SourceMe.py to gdb-gui.py

This commit is contained in:
Tom Tromey
2015-05-04 19:41:32 -06:00
parent 30fa4c65e8
commit 3bfce4dfb6
4 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
*.o *.o
*.so *.so
SourceMe.py SourceMe.py
gdb-gui.py

View File

@@ -1,18 +1,18 @@
all: SourceMe.py gui/fix_signals.so all: gdb-gui.py gui/fix_signals.so
@: @:
SourceMe.py: SourceMe.py.in gdb-gui.py: gdb-gui.py.in
sed -e "s,HERE,`pwd`," < SourceMe.py.in > SourceMe.py sed -e "s,HERE,`pwd`," < gdb-gui.py.in > gdb-gui.py
gui/fix_signals.so: gui/fix-signals.c gui/fix_signals.so: gui/fix-signals.c
gcc -shared -fPIC -g -o gui/fix_signals.so gui/fix-signals.c `pkg-config --cflags python` `pkg-config --libs python` gcc -shared -fPIC -g -o gui/fix_signals.so gui/fix-signals.c `pkg-config --cflags python` `pkg-config --libs python`
clean: clean:
-rm SourceMe.py gui/fix_signals.so -rm gdb-gui.py gui/fix_signals.so
hack-gdbinit: hack-gdbinit:
if test -f $$HOME/.gdbinit && `grep -q SourceMe $$HOME/.gdbinit`; then \ if test -f $$HOME/.gdbinit && `grep -q gdb-gui $$HOME/.gdbinit`; then \
:; \ :; \
else \ else \
echo "source `pwd`/SourceMe.py" >> $$HOME/.gdbinit; \ echo "source `pwd`/gdb-gui.py" >> $$HOME/.gdbinit; \
fi fi

2
README
View File

@@ -25,7 +25,7 @@ On Fedora I think this suffices:
sudo yum install gdb python-devel gtksourceview3 pygobject3 sudo yum install gdb python-devel gtksourceview3 pygobject3
After you install this, type "make". Now, start gdb and source the After you install this, type "make". Now, start gdb and source the
"SourceMe.py" file. This sets everything up. If you want it to "gdb-gui.py" file. This sets everything up. If you want it to
always be available, you can use "make hack-gdbinit", which will add always be available, you can use "make hack-gdbinit", which will add
the appropriate "source" line to your ~/.gdbinit. the appropriate "source" line to your ~/.gdbinit.