Skip to content

Can't get emacs-gdb to work with remote target #14

Open
@martin5233

Description

@martin5233

I have tried to run the emacs-gdb package with a remote target. As the documentation on this is rather scarce I tried three different approaches:

  • I passed a TRAMP filename to gdb-executable. In this case, it seems that emacs-gdb invokes gdb locally, which cannot work
  • I set gdb-executable-name to "ssh:/user@host:/usr/local/bin/gdb" and then invoked gdb-executable with a local path. This results in an error message 'Wrong type argument: gdb--buffer-info, nil'
  • I set gdb-executable-name the same as above and additionally invoke gdb-executable with a remote path. This results in the same error message, as in the previous attempt.

Could you please describe how to set up the package to be able to debug remotely?
I'm not sure, if this matters, but I am using Emacs 28.0.90 with native compilation enabled on a Linux machine. The remote machine is Linux as well.

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