[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 "/home/usb10132/ct1/bin/targets/src/gcc-4.3.2/libstdc++-v3/libsupc++/new_op.cc" 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 not surprising)

Here is my debugging setup steps:

  1. Board Phytec LPC3250
         * install gdbserver using LTIB building system
         * run debugging program using command "gdbserver
 " where -- 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
           gdb-arm-linux-gnu_6.8-3_i386 from
         * 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.

Best Regards, Dmitry Vinokurov <d.vinokuroff@gmail.com>

Reply to: