Right now, while working on my laptop (amd64), I can already compile code through SSH on a BeagleBone (armhf).
What I'm trying to do now, is being able to use any IDE to debug that code (Code::Blocks, KDevelop, or Qt Creator).
So, I thought of running
gdbserver on the BeagleBone, and connecting to it, but it gives me an error of unexpected value on reply. I read about it, and it seems I need to locally build an armhf executable, for
gdb to process. But I guess it also needs an armhf-oriented
gdb built for amd64, so I tried installing
crossbuild-essential-armhf. For that, I added the armhf architecture with
dpkg --add-architecture armhf, but then I'm unable to do an apt-get update. I get a whole lot of these:
Err http://security.ubuntu.com trusty-security/main armhf Packages 404 Not Found [IP: 2001:67c:1562::13 80]
If I check the repos, they indeed do not have armhf anywhere.
So, what am I doing wrong? Also, is this the correct way to remote debug with a different architecture, or is there any better way to do it?