Remote C++ program debugging on ARM9
I've got RDK Phytec LPC3250 board with installed gdbserver
(http://www.emdebian.org/toolchains/pool/main/g/gdb/) and laptop with
Debian GNU/Linux, arm-linux-gnu-gdb and Eclipse with CDT.
When I try to debug C++ application, main function "steps" fine, step
into functions works fine too. But when I try to step into line like
"obj = new Object();", Eclipse opens error tab with header "2 operator
new() new" and content "Can't find a source file at
Locate the file or edit the source lookup path to include its location."
Looks like instead of entering Object constructor, debugger tries to
find source of 'new' operator and fails.
Debugging with gdb only (without Eclipse) leads to same result (and it's
Here is my debugging setup steps:
1. Board Phytec LPC3250
* install gdbserver using LTIB building system
* run debugging program using command "gdbserver
192.168.0.7:6280" where 192.168.0.7 -- laptop ip-address,
6280 -- some not-reserved port.
Output is following:
Process m2b created; pid = 374
Listening on port 6280
2. Debian GNU/Linux Laptop
* install Eclipse и CDT (last versions at the moment), LTIB
building system from CVS, ARM debugger
* at the Eclipse menu Run->Debug Configurations->Debugger do
o in the field Debugger select 'gdbserver debugger';
o at the tab Main in 'GDB debugger set path to installed
ARM debugger '/usr/bin/arm-linux-gnu-gdb';
o at the tab Shared Libraries set path to shared libs of
the board (mine is '/home/raydan/ltib/rootfs/lib',
subdir of root FS mounted by NFS)
o at the tab Connection select TCP, set ip-address and port
If someone have experience of C++ remote debugging in the same
situation, share, please.
Thanks in advance.