You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
This enables one to override an already installed gnatdbg package,
available in the Python interpreter.
Change-Id: I7ce530f84324c3ef982af72fb09e4ad8a38ff63b
For GitHub issue #4
no-tn-check
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" tosys.path
withinsert
.Also, for
python import gnatdbg
to work, thesys.path
must include the directory wheregnatdbg
is located, not thegnatdbg
directory itself.Otherwise, your fix works great, thanks!
The text was updated successfully, but these errors were encountered: