From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21424 invoked by alias); 14 Feb 2007 15:14:19 -0000 Received: (qmail 21414 invoked by uid 22791); 14 Feb 2007 15:14:18 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc2-s16.bay0.hotmail.com (HELO bay0-omc2-s16.bay0.hotmail.com) (65.54.246.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 14 Feb 2007 15:14:08 +0000 Received: from hotmail.com ([207.46.9.210]) by bay0-omc2-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 14 Feb 2007 07:14:06 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 14 Feb 2007 07:14:06 -0800 Message-ID: Received: from 207.46.9.251 by by120fd.bay120.hotmail.msn.com with HTTP; Wed, 14 Feb 2007 15:14:04 GMT X-Sender: pelle2004@hotmail.com From: "Pelle Svensson" To: gdb@sourceware.org Bcc: Subject: Remote debugging with gdbserver on ARM Date: Wed, 14 Feb 2007 15:34:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-02/txt/msg00120.txt.bz2 Hi, I need some help!!! I tried for a copule of days to get something out of a remote debugging. I'm using eclipse/gdb on i386 targeting ARM using gdbserver. Setup ==== Starting the ARM target as: gdbserver linuxhost:1027 application. Issue launch debug session on eclipse with: TCP/IP connection on port 1027 shared library path: (i386host)//home/dev/nfs/targetfs/lib, (target path is /lib) Load shared library symbols automatically is active Stop on shared library events is active Stop st main() on startup is active issued set solib-absolute-prefix /dev/null issued set unwindonsignal on breakpoint set at main() breakpoint set at other_function() Messages at startup ============= warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Cannot access memory at address 0x0 Ignoring packet error, continuing... Stopped due to shared library event [Switching to Thread 16384] Problems!! ======= On launch I end up at the breakpoint on main() o>int main(int argc,char **argv, char ** env) >{ > >#ifdef _DEBUG > if (getenv("BOX2_NOOUTPUT") != NULL) _do_output = 0; > if (getenv("BOX2_DISPLAY") != NULL) _ggi_open_name = "box2"; >#endif /* _DEBUG */ I can singel step once to 'if (getenv...' but next step is lost and a message says: Cannot access memory at address 0x0 If I hit resume the program seems to be running but the program is stuck somewhere which it is not doing without the debugger attached. Any ideas... _________________________________________________________________ Motionera roligare med MSN Hälsa http://e-health.msn.se/