From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18732 invoked by alias); 24 Apr 2010 16:02:41 -0000 Received: (qmail 18195 invoked by uid 22791); 24 Apr 2010 16:02:39 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from elasmtp-scoter.atl.sa.earthlink.net (HELO elasmtp-scoter.atl.sa.earthlink.net) (209.86.89.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Apr 2010 16:02:33 +0000 Received: from [209.86.224.38] (helo=elwamui-lapwing.atl.sa.earthlink.net) by elasmtp-scoter.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1O5hoN-0000nV-RU for gdb@sourceware.org; Sat, 24 Apr 2010 12:02:31 -0400 Received: from 68.183.253.45 by webmail.earthlink.net with HTTP; Sat, 24 Apr 2010 12:02:31 -0400 Message-ID: <1174699.1272124951818.JavaMail.root@elwamui-lapwing.atl.sa.earthlink.net> Date: Sat, 24 Apr 2010 16:02:00 -0000 From: ikorot@earthlink.net Reply-To: ikorot@earthlink.net To: gdb@sourceware.org Subject: Re: How to debug the program remotely? Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae972db06a188bef94f5150ab1c16ac04e761f5d55cab8bc58561fdad0873dc42b5ff5b954222d99350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes 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: 2010-04/txt/msg00123.txt.bz2 Baurzhan, -----Original Message----- >From: Baurzhan Ismagulov >Sent: Apr 24, 2010 12:43 PM >To: gdb@sourceware.org >Subject: Re: How to debug the program remotely? > >On Sat, Apr 24, 2010 at 02:06:20AM -0400, ikorot@earthlink.net wrote: >> I would like to debug the program that will be running on the ARMv4t architecture >> from x86. >> >> Is it possible using the "remote debugging" method? > >Yes. Good. ;-) > > >> If yes, how do I do that? I can't run ARMv4t version of gdb on x86 architecture. > >If you have gdb for arm, you can also run it natively on your target. I do have it. The problem is that I am getting "out of memory" error running it. And I hope that this way I will be able to solve it and do the debugging. > > >> Or gdb will recognize that I am connecting to the different target? > >No. Either you have a native debugger and run it on the target, or you >have a cross-debugger and run it on the host. Which one would you like >to use? Which OS do you have on the host and on the target? The target is an ARMv4t running Linux Arngstrom kernel with GPE. The host is running Gentoo Linux on x86. I cross-compiled everything using an OpenEmbedded tree. On the target I have my program and gdbserver. On host I have a native gdb with the native compiled program, and the cross-compiled stuff from OE tree and the cross-compiled program. I don't care which method to use as long as it will help me solve my crash (Segmentaion fault). ;-) My problem is that the program I am trying to debug runs perfectly on x86 but crashing on the ARM inside libX11. All I need to know what command is it trying to execute on my end before crash. Thank you for you help. > > >With kind regards, >-- >Baurzhan Ismagulov >http://www.kz-easy.com/