Le 07/12/2012 19:56, Dimitar Zhekov a écrit :
Hi,
Since the end of the world is coming soon [1], here [2] is a little something to play with. Note that it currently reads data/scope.glade on startup (no "make install" yet), so geany must be started from the directory where you unpacked scope. Please read scope.html, TODO and notes before asking questions. Of course, there are two questions that I must answer properly first:
- Why do we need another gdb front-end?
Don't know about you. I needed something that runs under win~1, has decent Locale support and the abilities to change values and execute gdb commands at any time.
I saw the next point, but couldn't this have been done in the other debugger plugin? It looks a little bit like a duplicate :)
- Is it possible to merge debugger and Scope?
No more that we can merge SciTE and Geany. They are both editors, based on Scintilla and using gtk+ under *nix, but that's about it.
--
[...]
Anyway, I had some spare time so I decided to test your plugin. Unfortunately, I couldn't build it :(
First:
$ make gcc -O2 -Wall -W '-DLOCALEDIR="/tmp"' '-DGETTEXT_PACKAGE="package"' -c break.c -fPIC `pkg-config --cflags geany` gcc -O2 -Wall -W '-DLOCALEDIR="/tmp"' '-DGETTEXT_PACKAGE="package"' -c conterm.c -fPIC `pkg-config --cflags geany` conterm.c:42:21: fatal error: vte/vte.h: Aucun fichier ou dossier de ce type compilation terminated. make: *** [conterm.o] Erreur 1
OK, that's problematic but easy to solve. I modified the Makefile as follows to fix this:
$ git diff diff --git a/Makefile b/Makefile index f817f6f..3e62e63 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,13 @@ COMMON = break.h conterm.h debug.h gtk216.h inspect.h local.h menu.h parse.h plu $(OBJS): $(COMMON)
$(OBJS) main.o: %.o : %.c - gcc $(CFLAGS) -c $< -fPIC `pkg-config --cflags geany` + gcc $(CFLAGS) -c $< -fPIC `pkg-config --cflags geany vte`
debug.i : debug.c gcc -E $< `pkg-config --cflags geany` > $@
scope.so: $(OBJS) main.o - gcc -g -o scope.so $(OBJS) -shared `pkg-config --libs geany` -lvte -lutil + gcc -g -o scope.so $(OBJS) -shared `pkg-config --libs geany vte` -lutil
check: main.o scope.so gcc main.o scope.so
But now I get:
$ make gcc -O2 -Wall -W '-DLOCALEDIR="/tmp"' '-DGETTEXT_PACKAGE="package"' -c break.c -fPIC `pkg-config --cflags geany vte` gcc -O2 -Wall -W '-DLOCALEDIR="/tmp"' '-DGETTEXT_PACKAGE="package"' -c conterm.c -fPIC `pkg-config --cflags geany vte` conterm.c: In function ‘conterm_init’: conterm.c:439:37: error: ‘program_pty_master’ undeclared (first use in this function) conterm.c:439:37: note: each undeclared identifier is reported only once for each function it appears in make: *** [conterm.o] Erreur 1
and I can't find anywhere this program_pty_master, and the Web doesn't seem to know about it either. Ah and yes, I have -Werror-implicit-function-declaration enabled, but everything should build with it -- and it removing it wouldn't make that function appear magically I think :)
Also, in scope.c:debug_menu_keys[] you should use the `N_()` macro to mark the second column as translatable, simply adding a comment is not enough for translation extractor to find them.
Regards, Colomban