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
*.so
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
sed -e "s,HERE,`pwd`," < SourceMe.py.in > SourceMe.py
gdb-gui.py: gdb-gui.py.in
sed -e "s,HERE,`pwd`," < gdb-gui.py.in > gdb-gui.py
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`
clean:
-rm SourceMe.py gui/fix_signals.so
-rm gdb-gui.py gui/fix_signals.so
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 \
echo "source `pwd`/SourceMe.py" >> $$HOME/.gdbinit; \
echo "source `pwd`/gdb-gui.py" >> $$HOME/.gdbinit; \
fi

2
README
View File

@@ -25,7 +25,7 @@ On Fedora I think this suffices:
sudo yum install gdb python-devel gtksourceview3 pygobject3
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
the appropriate "source" line to your ~/.gdbinit.