On 21 Feb 2022 22:09, Hans-Peter Nilsson wrote: > On Thu, 17 Feb 2022, Mike Frysinger via Gdb-patches wrote: > > This was left in subdirs because of the dynamic cgen usage. However, > > we can move this breakpoint call to runtime and let gdb detect whether > > the symbol exists. > > The .gdbinit file doesn't do much good in the sim/ directory > instead of sim/ where the "run" program is located (such > that .gdbinit is loaded when you start gdb there to debug it). > > Make a symlink in sim/? personally i run `gdb ./xxx/run` since you have to be in sim/ to run `make` for all the common objects & libs, at least initially. that said, should be easy to generate xxx/.gdbinit files that do: source ../.gdbinit then both flows just work. -mike