mirror of
https://github.com/tromey/gdb-gui.git
synced 2025-07-20 20:41:28 +02:00
rename SourceMe.py to gdb-gui.py
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@
|
||||
*.o
|
||||
*.so
|
||||
SourceMe.py
|
||||
gdb-gui.py
|
||||
|
12
Makefile
12
Makefile
@@ -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
2
README
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user