![]() ![]() Remember, this is a quick and dirty workaround, not a permanent fix. Then in eclipse, in the debug configuration configure the debugger to run the newly compiled gdb binary. Wcscpy (args, wcsstr (toexec, L"Debug")) What I modified in that file is a couple of line : find the following lines :Īrgs = (wchar_t *) alloca ((wcslen (toexec) + wcslen (cygallargs) + 2) What I changed is the file named windows-nat.c located in the gdb folder (where i uncompress the downloaded tar) : gdb13.1/gdb/windows-nat.c I downloaded the latest version (13.1, in test) and modified a specific file before recompiling the binary. like the hbreak command, the breakpoint requires hardware support and some target hardware may not have this support. core file-c file Use file file as a core dump to examine. The way I fixed it implies the gdb binary recompilation. Read symbol table from file file and use it as the executable file. I found a quick and dirty way to fix the issue in my environment eclipse (STM32CubeIDE Version: 1.12.0) and gdb v13.1 on cygwin I'm pretty new to this so I've run out of ideas of what to check: it must be a configuration issue with Eclipse that I'm missing so if anyone can help I'd really appreciate it. ![]() What's being generated looks like a concatenation of Cygwin_Home, eclipse, CWD or PWD and the project executable. I do have a Path Mapping set in Source Lookup Path /cydrive/c -> C:\ (although I get that incorrect path generated irrespective). I can't work out how Eclipse is building that path to pass to GDB. \HelloWorld.exe - it works fine and I get "hello world!" output. If I run If I run gdb from the command line in the HelloWorld\Debug directory - gdb. Error creating process: /cygdrive/c/eclipse/C:/Users/andrewjohnson/eclipse-workspace/HelloWorld/C:/Users/andrewjohnson/eclipse-workspace/HelloWorld/Debug/HelloWorld.exe, (error 2)."Įrror 2 is a Windows code relating to file not found I believe. "failed to execute MI command: -exec-run. When I try to debug this, I get a gdb error which I can't fathom: I have a very simple helloworld program which compiles and runs in Eclipse, outputting "hello world!" on the console. ![]() This is on a Windows 10 VM running on MacOS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |