Skip to content

Install procedure doesn't really work with GNAT Pro #4

Closed
@ptroja

Description

@ptroja

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions