ts-7000
[Top] [All Lists]

[ts-7000] Eclipse Remote Debuggin to TS-7260 Target

To:
Subject: [ts-7000] Eclipse Remote Debuggin to TS-7260 Target
From: "bwa4992" <>
Date: Wed, 12 Nov 2008 21:48:11 -0000
I am having problems cross debugging on my TS-7260 platform.  My host 
platform is Windows XP with the Eclipse IDE (C/C++ CDT) and the 
crosstool ARM compiler for Cygwin.

I have a simple hello program:

//********************************
#include <iostream>
using namespace std;

int
main (int argc, char **argv)
{
   cout << "Hello world." << endl;
   return 0;
}
//*********************************

I can successfully compile the program in debug mode using the Cygwin 
crosstool g++, transfer the executable from the Windows PC to the TS-
7260, and run it on the TS-7260 via SSH.  I get the expected output:

:bin# Hello.exe
Hello world.
:bin#

When I cross-debug, however, gdbserver ends up crashing.

I am using gdbserver on the TS-7260 and the Cygwin gdb on the Windows 
PC.  I configure and launch the debugger in Eclipse, gdbserver and 
gdb successfully connect via TCP on port 49152.  On the TS-7260, I 
can do a "ps -A" and see both gdbserver and Hello.exe running.

In the Eclipse Debug window, however, I see the following:

---------------------------------------------------------------------
Hello [C/C++ Remote Application]
   gdbserver debugger (11/12/08 4:09 PM) (Suspended)
      Thread[1] (Suspended: Signal 'SIGSEGV' received.  Description:
            Segmentation fault.)
      3 <symbol is not available> 0x2ad51d28
      2 <symbol is not available> 0x7ffffe63
      1 <symbol is not available> 0x00000000
   Remote Shell
   C:\cygwin\bin\gdb.exe (11/12/08 4:09 PM)
   C:\Projects\Hello\Debug\Hello.exe (11/12/08 4:09 PM)
---------------------------------------------------------------------

If I try do anything (like set a breakpoint on the "cout" line, then 
click the "Resume" button), gdbserver crashes on the TS-7260 and the 
Debug windows shows the following:

---------------------------------------------------------------------
<terminated>Hello [C/C++ Remote Application]
   <terminated>gdbserver debugger (11/12/08 4:09 PM) (Exited. Signal
         'SIGSEGV' received.  Description: Segmentation fault.)
   <terminated, exit value: 0>Remote Shell
   <terminated, exit value: 0>C:\cygwin\bin\gdb.exe
         (11/12/08 4:09 PM)
   <terminated, exit value: 0>C:\Projects\Hello\Debug\Hello.exe
         (11/12/08 4:09 PM)
---------------------------------------------------------------------

Can anyone tell me how to get Eclipse remote debugging working in 
this environment without gdbserver crashing?



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Eclipse Remote Debuggin to TS-7260 Target, bwa4992 <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU