Closed
Description
The Install procedure for .gdbinit
suggests to put there:
sys.path.append('/home/ptroja/gnat-gdb-scripts/gnatdbg')
but I only got your fix for #3 to work after changing that line to:
sys.path.insert(0, '/home/ptroja/gnat-gdb-scripts')
Apparently gnat-gdb-scripts are already shipped with GNAT (Pro?), at least they already came with my recent GNAT from GAIA. Appending to the sys.path
didn't work, because gdb was still picking the package that came with GNAT, not the one that I took from Github; that's why I had to "prepend" to sys.path
with insert
.
Also, for python import gnatdbg
to work, the sys.path
must include the directory where gnatdbg
is located, not the gnatdbg
directory itself.
Otherwise, your fix works great, thanks!
Metadata
Metadata
Assignees
Labels
No labels