Skip to content

rust-gdb uses option which /usr/bin/gdb doesn't understand #4

Closed
@ltratt

Description

@ltratt

If I build nightly and try to run rust-gdb I get:

$ rust-gdb
gdb: unrecognized option `-iex'
Use `gdb --help' for a complete list of options.

If I look at the rust-gdb installed in build-rust/install_dir/nightly/bin I see:

PYTHONPATH="$PYTHONPATH:$GDB_PYTHON_MODULE_DIRECTORY" gdb \
  -d "$GDB_PYTHON_MODULE_DIRECTORY" \
  -iex "add-auto-load-safe-path $GDB_PYTHON_MODULE_DIRECTORY" \
  "$@"

Changing gdb to egdb solves the problem. [There may be a way that doesn't rely on egcc, but this worked for me!]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions