mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-01 04:50:08 +01:00
b78f19982f
I really need this for embedded development in IDF and Zephyr, where the chip vendors sometimes provide there own specialized version of the tools, and I need to direct zed to use these. The current GDB adapter only supports the gdb it find in the normal search path, and it also seems like we where not able to transfer gdb specific startup arguments (only `-i=dap` is set) . In order to fix this I (semi wipe using GPT-4.1) expanded the GDB adapter with 2 new config options : * **gdb_path** holds a full path to the gdb executable, for now only full path or relative to cwd * **gdb_args** an array holding additional arguments given to gdb on startup It seemed to me, like the `env` config did not transferred to gdb, so this is added to. I have tested this locally, and it seems to work not only compile :-) Release Notes: debugger: Adds gdb_path and gdb_args to gdb debug adapter options debugger: Fix bug where gdb debug sessions wouldn't inherit the shell environment from Zed --------- Co-authored-by: Anthony <anthony@zed.dev>