Ok, I somehow expected that. :) Unfortunately I am not skilled enough nor have enough time budget for this kind of investigation, but on the positive side I managed to setup Termdebug as a client for an openocd server who was running in a hidden terminal buffer in Vim in a fairly streamlined way.
Other than being unable to display messages back from the server when using (gdb) monitor <whatever poll command>, most likely due to a Termdebug bug, the overall debugging experience by just using gdb commands was excellent. Vim is a top class piece of software. Best, /Ubaldo > Il giorno 28 gen 2024, alle ore 21:28, Christian Brabandt > <[email protected]> ha scritto: > > >> On So, 28 Jan 2024, Ubaldo Tiberi wrote: >> >> I am working with a microcontroller (stm32f4) and I am attempting to debug >> it by connecting Termdebug to openocd. >> >> Everything works nicely with the exception that the messages sent back from >> openocd (server) to Termdebug (client) are not displayed in any Termdebug >> window (I expected them to be displayed in the gbd window). >> >> For example, if I run (gdb) monitor reg I would expect to have the content >> of the microcontroller's registers displayed in the Termdebug's gdb window, >> but unfortunately that does not happen. >> >> This is what is in my .vimrc >> >> g:termdebug_config = {} var debugger_path = >> "/Applications/STM32CubeIDE.app/Contents/Eclipse/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.11.3.rel1.macos64_1.1.100.202310310803/tools/bin/" >> g:termdebug_config >> ['command'] = debugger_path .. "arm-none-eabi-gdb" >> >> If instead of using Termdebug I use another terminal window (I am using >> iTerm2) running as arm-none-eabi-gdb client connected to the same openocd >> server, then the messages sent back from the server are correctly displayed. >> >> I am using MacVim 9.1. > > I am afraid you would have to debug the Termdebug plugin and find out > where exactly it fails. I don't think anybody here knows about the > specifics of "arm-non-eabi-gdb" > > > Thanks, > Christian > -- > "You stay here, Audrey -- this is between me and the vegetable!" > -- Seymour, from _Little Shop Of Horrors_ > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to a topic in the Google > Groups "vim_use" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/vim_use/fBCd-7jV_b8/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vim_use/Zba49Yo77m6RK/ay%40256bit.org. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/0129E7B0-CB8F-4BB3-A128-7768ECBA02A4%40gmail.com.
