Bug GDB with message "..ptype r.ftabmots..."
I think the problem appears depending on the type of variable being scanned (in this case, a dynamic array, etc.).
There aren't any settings for that.
GDB has a very very limited understanding of Pascal types. In order to get better results, years and years of work went into the IDE tweaking the input to GDB (e.g. appending ^ if necessary) in order to get as much info as possible.
But then in each GDB version different issue arose were GDB itself would crash.
I used to test with combination of more than 10 gdb versions versus 3 or 4 fpc versions and with different debug info settings.... Very time consuming.
Since a couple of years my focus moved to FpDebug (but that does only support i386/x86).
I still want to update the gdb backend of the IDE again. But I simply hadn't had time in a few years.
I had never gotten it 100% stable with the old gdb versions (can't workaround every gdb bug), and the newer gdb versions haven't always improved it.
As I said LLDB should work (and likely be more stable) on your platform.
IIRC the package is called LazDebuggerLLDB (there MUST NOT be any "FP" in the name).
Well if you install it, install both: the one with and the one without "FP" in the name.
You can then test "LLDB alpha" and "LLDB+FpDebug" as debugger backends.
**IF** "LLDB+FpDebug" works, then great => that should give you a really good experience (though it be a a little bit slower showing watches)
Otherwise the "LLDB alpha" should work. (Use only "Dwarf 2"). However watches need to be entered C-style: obj->field
Unfortunately that are currently all the options.