From owner-freebsd-arm@FreeBSD.ORG Sun May 3 10:08:38 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A72517DF for ; Sun, 3 May 2015 10:08:38 +0000 (UTC) Received: from mout3.freenet.de (mout3.freenet.de [IPv6:2001:748:100:40::2:5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.freenet.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6547B1BA2 for ; Sun, 3 May 2015 10:08:38 +0000 (UTC) Received: from [195.4.92.140] (helo=mjail0.freenet.de) by mout3.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (port 25) (Exim 4.82 #2) id 1Yoqp9-0007Hv-7g for freebsd-arm@freebsd.org; Sun, 03 May 2015 12:08:35 +0200 Received: from localhost ([::1]:44643 helo=mjail0.freenet.de) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1Yoqp9-0003VO-3s for freebsd-arm@freebsd.org; Sun, 03 May 2015 12:08:35 +0200 Received: from mx2.freenet.de ([195.4.92.12]:44512) by mjail0.freenet.de with esmtpa (ID freebsdnewbie@freenet.de) (Exim 4.82 #2) id 1Yoqn8-0000Sl-OP for freebsd-arm@freebsd.org; Sun, 03 May 2015 12:06:30 +0200 Received: from p5ddd742c.dip0.t-ipconnect.de ([93.221.116.44]:16995 helo=freebsd-lt.fritz.box) by mx2.freenet.de with esmtpsa (ID freebsdnewbie@freenet.de) (TLSv1.2:AES128-GCM-SHA256:128) (port 465) (Exim 4.82 #2) id 1Yoqn8-00071r-KK for freebsd-arm@freebsd.org; Sun, 03 May 2015 12:06:30 +0200 Date: Sun, 3 May 2015 12:06:04 +0200 From: Manuel =?ISO-8859-1?Q?St=FChn?= To: freebsd-arm@freebsd.org Subject: gdb on armv6 Message-ID: <20150503120604.2db4bdcf@freebsd-lt.fritz.box> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; i386-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originated-At: 93.221.116.44!16995 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2015 10:08:38 -0000 Hi list, is there something special to consider when debugging applications on armv6(-hf)? I'm using FreeBSD-Current on a Wandboard-QUAD. Unfortunately it is not possible for me to step through even simple applications. The program gets executed until it exits even if i use the step command. Example: manuel@wandboard:~/devel/gdb % cat gdb-test.c #include #include int main( int argc, char* argv[] ) { int value; for( value = 0; value < 10; value++ ) { printf("value: %i\n", value ); } return value; } manuel@wandboard:~/devel/gdb % clang -Wall -Werror -g3 -O0 -o app gdb-test.c manuel@wandboard:~/devel/gdb % gdb app GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "armv6hf-marcel-freebsd"... (gdb) break main Breakpoint 1 at 0x8610: file gdb-test.c, line 9. (gdb) run Starting program: /usr/home/manuel/devel/gdb/app Breakpoint 1, main (argc=1, argv=0xbfbffc30) at gdb-test.c:9 9 for( value = 0; value < 10; value++ ) Current language: auto; currently minimal (gdb) step value: 0 value: 1 value: 2 value: 3 value: 4 value: 5 value: 6 value: 7 value: 8 value: 9 Program exited with code 012. (gdb) This exact behaviour can also be seen on my other boards like BBB or RPI-B. Any hints? Thanks in advance. -- Manuel Stuehn