Hi,
a couple of years back I got scope gdb working for remote debugging ( ARM from PC host ).
I was going to do a PR but at that time scope was "depricated" because it had not been updated for python3 and there was no maintainer, so there was not much point.
Gladly scope seems to be still going strong which is great, it's an excellent plugin to have.
I can't remember exactly what version this applied to and probably won't get round to applying this to current scope, so I thought I'd throw the code up here in case it is any help.
```
--- geany-plugins-0.21.1/debugger/src/dbm_gdb.c.original
+++ geany-plugins-0.21.1/debugger/src/dbm_gdb.c
@@ -96,6 +96,9 @@
/* flag, showing that on debugger stop we have to call a callback */
gboolean requested_interrupt = FALSE;
+
+/* flag: remote debugging session*/
+gboolean remote_session = FALSE;
/* autos list */
static GList *autos = NULL;
@@ -598,6 +601,9 @@
*/
gboolean load(char* file, char* commandline, GList* env, GList *witer)
{
+char *ip;
+char *port;
+
/* loading file */
GString *command = g_string_new("");
g_string_printf(command, "-file-exec-and-symbols %s", file);
@@ -610,11 +616,38 @@
return FALSE;
}
- /* set arguments */
- command = g_string_new("");
- g_string_printf(command, "-exec-arguments %s", commandline);
- exec_sync_command(command->str, TRUE, NULL);
- g_string_free(command, TRUE);
+ /* is it a remote target? */
+ /* (remote sessions handle commandline on debugserver side) */
+ if (commandline[0] == '@') {
+ ip = commandline + 1;
+ port = strchr(ip, ':');
+ if (port != NULL) {
+ *port = '\0';
+ port++;
+ }
+ else {
+ port = (char *)"3278";
+ }
+ if (ip == '\0') {
+ ip = (char *)"127.0.0.1";
+ }
+ if (port == '\0') {
+ port = (char *)"3278";
+ }
+ command = g_string_new("");
+ g_string_printf(command, "target remote %s:%s", ip, port);
+ exec_sync_command(command->str, TRUE, NULL);
+ g_string_free(command, TRUE);
+ remote_session = TRUE;
+ }
+ /* set arguments in non-remote sessions */
+ else {
+ remote_session = FALSE;
+ command = g_string_new("");
+ g_string_printf(command, "-exec-arguments %s", commandline);
+ exec_sync_command(command->str, TRUE, NULL);
+ g_string_free(command, TRUE);
+ }
/* set locale */
command = g_string_new("");
@@ -678,7 +711,14 @@
}
free_start_messages();
- exec_async_command("-exec-run &");
+ if (remote_session) {
+ exec_async_command("break main");
+ sleep(2);
+ exec_async_command("continue");
+ }
+ else {
+ exec_async_command("-exec-run &");
+ }
}
/*
@@ -686,6 +726,9 @@
*/
void restart(char* terminal_device)
{
+ if (remote_session) {
+ dbg_cbs->report_error(_("Restart command not available in remote sessions"));
+ }
dbg_cbs->clear_messages();
exec_async_command("-exec-run &");
}
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1085
This PR adds full support for tags for Kotlin language.
- It pulls a recently added Kotlin parser from ctags and integrates it into tagmanager. Disclaimer: The parser was written (and is maintained) by me.
- It was also necessary to slightly modify the script `update-ctags.sh`, so it can import peg based parsers from ctags.
- I also renamed filetypes.Kotlin.conf to filetypes.kotlin, because geany for some reason (not really clear to me at this time), expects it named this way and if it isn't than syntax highlighting doesn't work at all. I hope this will not be a problem for backward compatibility...
- Simple test for kotlin tags is added as well.
Please let me know if there is anything else that needs to be done in order to merge this into Geany.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2778
-- Commit Summary --
* Add support for Kotlin tags
-- File Changes --
M ctags/Makefile.am (3)
M ctags/ctags_changes.patch (13)
A ctags/parsers/kotlin.c (17280)
A ctags/parsers/kotlin.h (22)
A ctags/parsers/kotlin_post.h (161)
A ctags/parsers/kotlin_pre.h (81)
M data/Makefile.am (2)
R data/filedefs/filetypes.kotlin (2)
M scripts/update-ctags.py (10)
M src/filetypes.c (1)
M src/filetypes.h (1)
M src/symbols.c (12)
M src/tagmanager/tm_parser.c (13)
M src/tagmanager/tm_parser.h (1)
M src/tagmanager/tm_parsers.h (3)
M tests/ctags/Makefile.am (1)
A tests/ctags/kotlin.kt (22)
A tests/ctags/kotlin.kt.tags (12)
-- Patch Links --
https://github.com/geany/geany/pull/2778.patchhttps://github.com/geany/geany/pull/2778.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2778
CentOS 7 yum install of geany.x86_64 0:1.36-2.el7 does not flag any external dependencies but the binary fails to run with:
"undefined symbol: gdk_wayland_display_get_type"
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2828
when in the two windows different documents are shown: in the second window I can type words, but I can not save the document (nor with ctrl+s nor with the save-symbol of the tool-bar)
to save the document: I have to activate the corresponding tab in the first window, and then save is possible
it would be good, when save is possible in the second window, no matter wich document is shown in the first window
possible solution
in Lubuntu 21.04 for example, in the file-manager PCManFM-Qt, there is also the possibility to split the window; but on each window there are tabs; it would be great to have this in Geany; split-window with tabs on each side should be not a plugin but a core element of geany, because it is so cool
at the moment I don't know any editor in the linux world which offers as option a split window with tabs on each side
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1084
You can view, comment on, or merge this pull request online at:
https://github.com/geany/www.geany.org/pull/30
-- Commit Summary --
* Bye bye IRC @ Freenode, RIP.
-- File Changes --
M README.dev.md (1)
M README.md (1)
M docker/Dockerfile (2)
M docker/local_settings.docker.py (1)
M geany/settings.py (2)
M geany/templates/home.html (1)
D geany/templates/pages/support/irc.html (25)
M geany/templatetags/geany_tags.py (16)
M geany/urls_legacy.py (3)
M page_content/about/geany.md (6)
M page_content/contribute/support.md (9)
M page_content/support.md (6)
D page_content/support/irc.md (12)
-- Patch Links --
https://github.com/geany/www.geany.org/pull/30.patchhttps://github.com/geany/www.geany.org/pull/30.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/www.geany.org/pull/30
currently only "vanilla" html parts of templates would have highlighting - the rest is recognized as plain text. And adding .jinja/.j2 extension to file without specifying <!DOCTYPE html> in header (say, if file extends other templates) will break highlighting entirely
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2827
Hello everyone,
I have been using geany for quite a long time now, this is the first bug I report; I hope I am doing it right.
My config : debian Bullseye with geany 1.37.1 (GTK 3.24.23, Glib 2.66.2)
My problem : my existing macros don't work, the keystroke produce nothing.
If I create a new one, it is working.
The only difference I notice is, in ~/.config/geany/plugins/Geany_Macros/settings.conf
The "C" line of the macro is 67108932 for the non-working ones and 100663364 for the new ones.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1083
Added 3 more keybindings for "Send Selection To".
I am obviously missing something. The keybindings are recognized (i.e. I can add more "Sent Selection To" commands and the keybinding will be shown in the menus of "Edit→Format→Send Selection to") and I can run the commands by manually going to "Edit→Format→Send Selection to" and clicking the desired command. However, pressing the keyboard shortcut for these new "Edit→Format→Send Selection to" commands will not run the assigned commands. Perhaps, somebody can point me in the correct direction.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/2536
-- Commit Summary --
* Added 3 More Keybindings
* Added 3 More Keybindings
* Added 3 More Keybindings
-- File Changes --
M src/keybindings.c (6)
M src/keybindings.h (3)
M src/tools.c (3)
-- Patch Links --
https://github.com/geany/geany/pull/2536.patchhttps://github.com/geany/geany/pull/2536.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/2536
In both v1.37.1 and the code on the master-branch (running on Ubuntu 20.04) do not report any symbols for PHP code. Neither can I Ctrl+Click a symbol nor use "Go to Symbol Definition" to find the symbol definition. Other languages (like C) list the symbols on the file and allow me to go to the symbol definition. I have tried many PHP files and I verified that my PHP files are valid, yet Geany seems to not be able to parse out the symbols.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2823