From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14349 invoked by alias); 23 Jan 2011 16:39:38 -0000 Received: (qmail 14340 invoked by uid 22791); 23 Jan 2011 16:39:38 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,TVD_RCVD_IP X-Spam-Check-By: sourceware.org Received: from 212.199.10.23.static.012.net.il (HELO plris.com) (212.199.10.23) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 23 Jan 2011 16:39:24 +0000 Received: by plris.com (Postfix, from userid 517) id 4A198A866B; Sun, 23 Jan 2011 18:39:21 +0200 (IST) Received: from leonp.plris.com (unknown [192.168.50.57]) by plris.com (Postfix) with ESMTP id E4148A8344; Sun, 23 Jan 2011 18:39:19 +0200 (IST) From: Leon Pollak To: Jan Kratochvil Subject: Re: Restarting gdbserver Date: Sun, 23 Jan 2011 16:39:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.34.7-66.fc13.x86_64; KDE/4.5.5; x86_64; ; ) Cc: gdb@sourceware.org References: <201101201129.50875.leonp@plris.com> <201101220052.00630.leonp@plris.com> <20110123132802.GA15230@host1.dyn.jankratochvil.net> In-Reply-To: <20110123132802.GA15230@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201101231843.44877.leonp@plris.com> 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: 2011-01/txt/msg00095.txt.bz2 Thank you, Jan. I hope I understood and did what you said: bash-4.1$ ./gdb -nx -ex file /opt/FS/common/csu -ex target extended-remote 192.168.50.4:44000 -ex set sysroot /opt/FS -ex set remote exec-file /common/csu -ex start GNU gdb (GDB) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=armv5tl- montavista-linux-gnueabi". For bug reporting instructions, please see: . Reading symbols from /opt/FS/common/csu...done. Remote debugging using 192.168.50.4:44000 Temporary breakpoint 1 at 0x20374: file /Projects/CSU/src/main.cpp, line 16. Starting program: /opt/FS/common/csu Temporary breakpoint 1, main () at /Projects/CSU/src/main.cpp:16 16 MsgLog("OFP Version: %s dated %s", OFP_VERSION, __TIMESTAMP__); (gdb) c Continuing. ^C Program received signal SIGINT, Interrupt. 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /opt/FS/lib/libpthread.so.0 (gdb) bt #0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /opt/FS/lib/libpthread.so.0 #1 0x00000000 in ?? () (gdb) ---------------------------------------------------------------------------- God knows why it decided to stop at main... I did not set break points here and '.gdbinit' file was deleted for the test. Is it what you meant? Thanks again! -- Leon