ubuntu eclipse beaglebone debugging not work - eclipse

I have the beaglebone connected to my PC running virtual Ubuntu (12.10) via VMware. I tried to debug my C++ codes on beaglebone using Eclipse (Version 3.8).
I followed the youtube video :http://www.youtube.com/watch?v=vFv_-ykLppo. But I was not able to get the debugging work properly. Can somebody help me?
Below is what I did and what I got. Note: My host PC's IP is 192.168.1.105. The beaglebone's IP is 192.168.102.
Beaglebone is conntec to PC through USB and ethernet. I was able to open the connection with Beaglebone in the embedded terminals of Eclipse.
I successfully installed gdb-multiarch in my local PC by entering this command in the PC's terminal: sudo apt-get install gdb-multiarch.
I successfully installed gdbserver on beaglebone by entering this command in the beaglebone's terminal : sudo apt-get install gdbserver
I CD to the application folder and entered this command in the beaglebone's terminal: gdbserver [hostPC's IP]:12346 HelloWorldTest4
I got this response:
Processing HelloWorldTest4 created; pid=1035
Listening on port 12346
In Eclipse, I go to Run->Debug Configurations->, Below is what I configured and they are also shown in the attached screen shots.
Main - > Build(if required ) before launching: Build configurations: Debug; Use workspacesettings
Debugger-> Main-> GDB debugger: gdb-multiarch
GDB command file : .gdbinit
Debugger-> Gdbserver Settings-> Gdbserver name: [beaglebone's IP address]
Port number :12346
Then I clicked Debug, I got the following errors.
POP-UP windows: 'Launching HelloWorldTest4 Debug' has encountered a problem. Error in final launch sequence:
In Console: warning: Architecture rejected target-supplied description
Questions:
1. Is this problem related to gdb-multiarch? How to fix it?
2. Is my IP addresses specified corectly?
Thank you in advance.

I fixed the same problem by creating a .gdbinit file with the following content in my project folder:
set architecture arm
then point the Debug Configuration -> Debugger -> GDB command file entry to this new .gdbinit file and debug

I also had same problem,
I download gdb source code, recompiled for target arm, and copy gdb to arm-linux-gnueabi-gdb and in eclipese I changed gdb to arm-linux-gnueabi-gdb. And everything started working.
get gdb (7.8) sources and extract them
./configure --target=arm-none-linux-gnueabi --with-expat=/usr/local/lib/
make
cd gdb/gdbserver
/configure --host=arm-none-linux-gnueabi --with-expat=/usr/local/lib/
make

Related

Command line tools not accessible from Eclipse on OSX

I am using Eclipse on a macOS machine. CMake is present on my machine at /usr/local/bin/cmake and has been installed using Homebrew. Eclipse is at the latest version (2018-09).
I have the following target in a Makefile, which has been set up and is visible from Eclipse:
all:
./configure
Rscript -e "Rcpp::compileAttributes()"
R CMD INSTALL --no-multiarch --with-keep.source .
Inside the configure file, there is this code:
cd src/build;cmake ..
However, when I double click the all target in Eclipse, I get the following message:
make all
./configure
./configure: line 1: cmake: command not found
make: *** [all] Error 127
I remember that some time ago this target worked out of the box on macOS. I can also launch CMake from a terminal without any trouble.
echo $PATH shows different behaviour:
If called from a standard macOS terminal, it yields /usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin
If called from a TM Terminal inside Eclipse, it yields /usr/bin:/bin:/usr/sbin:/sbin
What is the most canonical way to have Eclipse detect my CMake installation ?
For macOS High Sierra 10.13.6, the solution provided here works. This must be performed to see the changes immediately.

How to run GNAT Programming Studio on Raspberry PI 3 (Raspbian)?

I can not run GNAT Programming Studio on Raspberry PI 3 (Raspbian).
I am using 2017-06-21-raspbian-jessie.img and gnat-gpl-2016-raspberrypi-linux-linux-bin.tar.gz
After unzipping and typing in terminal sudo ./doinstall it is installed in /usr/gnat. Then I get a message saying
GNAT GPL is now installed. To luanch it, you must put /usr/gnat/bin in front of your PATH enviroment variable.
Then I type in terminal PATH="/usr/gnat/bin:$PATH"; export PATH.
Then I type in terminal gps after that I get
/usr/gnat/bin/gps_exe: 1: /usr/gnat/bin/gps_exe: Syntax error: word unexpected (expecting ")")
I have tried executing executable in /usr/gnat/bin but then I get
/usr/gnat/bin/gps_exe: cannot execute binary file: Exec format error
How to install it properly and be able to run it?
You need to install it on an x86 computer.
From the README:
The GNAT GPL compiler for raspberrypi is a cross compiler, hosted on
linux-x86 (or linux-x86_64)

Sipp with pcap installation on windows

I am trying to install sipp with pcap-replay on winows7.
I have installed cygwnin, libncurse, and winpcap. I was trying to patch cygwin with IPv6 using the URL http://cygwin.win6.jp/cygwin-ipv6/, but it couldn't get the setup.ini file.
So I copied to local directory and upgrade, but it said no new updates.
And if I try to complie sipp. it gives error
$ ./configure.ac --with-pcap
./configure.ac: line 3: syntax error near unexpected token [SIPp],'
./configure.ac: line 3:AC_INIT([SIPp], [3.3], [sipp-users#lists.sourceforge.net], [sipp])'
Could anyone help me in getting sipp be installed on windows?
I download sipp.3.3.990 it has ./configure and was able to install on Linux.
But now on windows it still fails saying ncurse is not present. But I have downloaded it.
How do I troubleshoot it from here?
You can follow below steps to generate configure from configure.ac.
$> autoreconf -i
Now, you will see a configure file created at the same location.
To run the above command, following packages are required: automake,ncurses-devel,libncurses,M4 and autoconf.
if any of the above packages are missing run the cygwin setup file again and select the packages on the package selection screen and click install.

Cannot start xv6 in qemu

I use Debian Wheezy and I want to run a xv6 in qemu.
I have installed libsdl1.2-dev and then start run make qemu. But an error occured: Could not initalize SDL(could not find the device) exiting.
It is because qemu is trying to start X by default.
Build it by using
make qemu-nox
or if you are SSHing to a remote machine, use ssh -X
Source: http://www.cs.utexas.edu/~mwalfish/classes/f10-cs395t/labs/lab1.html

GDB with Eclipse CDT

When I try to run my C++ hello world program in Eclipse, I get the error "Error while launching command: gdb --version".
SO won't let me upload the following screenshot: Screenshot 1
I'm running eclipse on Windows 7 and using Cygwin's GCC/GDB. Typing gdb --version in cygwin causes no problems. I've confirmed that it's in C:/cygwin/bin. This path is added as an environment variable. What's the problem?
Here's a screenshot of my path variable: Screenshot 2
This is be because Eclipse CDT does not support gdb version 7.5. Please try to install the gdb version 7.3, or older.