Hallo friends, I'm using geany with GDB plug in for remote debugging on embedded Linux.
I have modify the plugin in this way:
1) I have change gdb with cris-gdb directly in the code (and maybe it should be not so bad to move this option in the preference) static gchar *gdbio_args[] = { "cris-gdb", "--interpreter=mi", "-nx", NULL };
2) I have change the command run command to 'target remote [ip:port] ' from '-exec-run' process_token = gdbio_send_seq_cmd(gdbio_target_started, "target remote 192.168.0.90:1234\n");
And so... I have found a "work around" quick and dirty to adapt the plugin for my use.
But... I have a question for who know better then me gtk:
Is it possible to have a function like: input dialog (like you can find in MFC under Microsoft visual studio) to get a string form the user?? So I could get [ip:port]for running debug from remote.
Can someone help me??
Thanks Alessandro Barbieri
Am Sonntag, den 14.06.2009, 10:15 +0200 schrieb Barbieri Alessandro:
Hallo friends, I'm using geany with GDB plug in for remote debugging on embedded Linux.
I have modify the plugin in this way:
- I have change gdb with cris-gdb directly in the code (and maybe it
should be not so bad to move this option in the preference) static gchar *gdbio_args[] = { "cris-gdb", "--interpreter=mi", "-nx", NULL };
- I have change the command run command to 'target remote [ip:port] '
from '-exec-run' process_token = gdbio_send_seq_cmd(gdbio_target_started, "target remote 192.168.0.90:1234\n");
And so... I have found a "work around" quick and dirty to adapt the plugin for my use.
Hey Barbieri :) Nice to read you solved that issue, even if it is a quick'n'dirty solution. :)
But... I have a question for who know better then me gtk:
Is it possible to have a function like: input dialog (like you can find in MFC under Microsoft visual studio) to get a string form the user?? So I could get [ip:port]for running debug from remote.
I unfortunately don't know GTK that good yet, but maybe someone on the list here does know more. :)
Regards, Dominic
On Mon, 15 Jun 2009 19:43:15 +0200, Dominic wrote:
Am Sonntag, den 14.06.2009, 10:15 +0200 schrieb Barbieri Alessandro:
Hallo friends,
Hey Barbieri,
first of all, this is a mailing list, so please subscribe to get further responses otherwise we would have to add you to the CC on each response which is a bit annoying. After you have subscribed, you automatically receive responses. Don't worry, this list is rather low-traffic. See http://lists.uvena.de/cgi-bin/mailman/listinfo/geany for details.
Is it possible to have a function like: input dialog (like you can find in MFC under Microsoft visual studio) to get a string form the user?? So I could get [ip:port]for running debug from remote.
Sure, see the attached sample code. dialogs_show_input_string() is based on Geany's dialogs_show_input_numeric() which is already part of the plugin API. We could also add dialogs_show_input_string() to the plugin API if desired. But for now, you can just copy it into the geanygdb sources and use it, the main function in the attached file shows how to use this function. But the file itself won't compile, be sure to use this code from the geanygdb plugin.
If you have further questions about this, just ask.
Regards, Enrico