From owner-freebsd-arm@FreeBSD.ORG Sun May 3 22:05:10 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 6E979A6 for ; Sun, 3 May 2015 22:05:10 +0000 (UTC) Received: from mailgate-01.zdv.uni-mainz.de (mailgate-01.zdv.Uni-Mainz.DE [IPv6:2001:4c80:40:62d:203:ffff:fe5d:b2f1]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "IronPort Appliance Demo Certificate", Issuer "IronPort Appliance Demo Certificate" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C3C0410AA for ; Sun, 3 May 2015 22:05:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uni-mainz.de; i=@uni-mainz.de; q=dns/txt; s=ironport; t=1430690710; x=1462226710; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=FiCbyIa1yEB9JOaLdV/3sao6zCxAbT/Pc5v9awAfbVg=; b=TzfB5YvmmdNqshZZOWzGIxUbwS6QXN00F4ubH21/NhIvZuuwbYT46qpp D91oewj6gyGhhJTa8+jNi4sMrC4qpLRc10YYIQxYtOb2nT2ZTT4Ot6JOy SEwRqt720uC94CdcEzkADIxFcEZB6Zy66S8a/gb8ldttEvK9oiwLwyRir Y=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A+AQBQB7mkZV/4BMASCCgIwGkPexf4/13L4yXIJmJlNcBcdHCoU2TgKBQUwBAQEBAQGBC4QgAQEBBAEBAUsgFwQCAQgRBAEBKAcnAQkBFAkIAgQBBwcEAQcVBIgKAQzEUgEBAQEGAQEBAQEBHIs5hDMBAVcGgidNgTMFi06GGYQ3hBCEEoVjjlojg3RvB4EEOYEBAQEB X-IPAS-Result: A+AQBQB7mkZV/4BMASCCgIwGkPexf4/13L4yXIJmJlNcBcdHCoU2TgKBQUwBAQEBAQGBC4QgAQEBBAEBAUsgFwQCAQgRBAEBKAcnAQkBFAkIAgQBBwcEAQcVBIgKAQzEUgEBAQEGAQEBAQEBHIs5hDMBAVcGgidNgTMFi06GGYQ3hBCEEoVjjlojg3RvB4EEOYEBAQEB X-IronPort-AV: E=Sophos;i="5.13,362,1427752800"; d="scan'208";a="136234947" Received: from e15fe-04.zdv.uni-mainz.de ([IPv6:2001:4c80:40:606:21d:d8ff:feb7:1f32]) by mailgate-01.zdv.uni-mainz.de with ESMTP/TLS/AES256-SHA; 04 May 2015 00:05:06 +0200 Received: from e15be-03.zdv.Uni-Mainz.DE (2001:4c80:40:606:92e2:baff:fe19:9239) by e15be-01.zdv.Uni-Mainz.DE (2001:4c80:40:606:92e2:baff:fe19:9090) with Microsoft SMTP Server (TLS) id 15.0.1076.9; Mon, 4 May 2015 00:05:05 +0200 Received: from e15be-03.zdv.Uni-Mainz.DE ([fe80::92e2:baff:fe19:9239]) by e15be-03.zdv.Uni-Mainz.DE ([fe80::92e2:baff:fe19:9239%18]) with mapi id 15.00.1076.000; Mon, 4 May 2015 00:05:05 +0200 From: =?iso-8859-1?Q?Wei=DF=2C__Dr=2E_J=FCrgen?= To: =?iso-8859-1?Q?=27Manuel_St=FChn=27?= , "freebsd-arm@freebsd.org" Subject: RE: gdb on armv6 Thread-Topic: gdb on armv6 Thread-Index: AQHQhYkk/F6mHmWdMk+gYyBw21lQKJ1qzLvw Date: Sun, 3 May 2015 22:05:05 +0000 Message-ID: <549bd3f33fcb43218ddeac53947702e9@e15be-03.zdv.Uni-Mainz.DE> References: <20150503120604.2db4bdcf@freebsd-lt.fritz.box> In-Reply-To: <20150503120604.2db4bdcf@freebsd-lt.fritz.box> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [134.93.178.81] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 22:05:10 -0000 With FreeBSD current and option ARM_NEW_PMAP you should have at least svn revision=3D282151. Without option ARM_NEW_PMAP, at least from a cursory code inspection, I would not expect it to work at all. Regards Juergen Weiss Juergen Weiss |Universitaet Mainz, Zentrum fuer Datenverarbeitung, weiss@uni-mainz.de |55099 Mainz, Tel: +49(6131)39-26361, FAX: +49(6131)39-2= 6407 > -----Original Message----- > From: owner-freebsd-arm@freebsd.org [mailto:owner-freebsd-arm@freebsd.org= ] On Behalf Of > Manuel St=FChn > Sent: Sunday, May 03, 2015 12:06 PM > To: freebsd-arm@freebsd.org > Subject: gdb on armv6 >=20 > Hi list, >=20 > is there something special to consider when debugging applications on arm= v6(-hf)? >=20 > I'm using FreeBSD-Current on a Wandboard-QUAD. Unfortunately it is not po= ssible > for me to step through even simple applications. The program gets execute= d until it > exits even if i use the step command. >=20 > Example: > manuel@wandboard:~/devel/gdb % cat gdb-test.c >=20 > #include > #include >=20 > int > main( int argc, char* argv[] ) > { > int value; >=20 > for( value =3D 0; value < 10; value++ ) > { > printf("value: %i\n", value ); > } >=20 > return value; > } >=20 > manuel@wandboard:~/devel/gdb % clang -Wall -Werror -g3 -O0 -o app gdb-tes= t.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 conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > 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 >=20 > Breakpoint 1, main (argc=3D1, argv=3D0xbfbffc30) at gdb-test.c:9 > 9 for( value =3D 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 >=20 > Program exited with code 012. > (gdb) >=20 > This exact behaviour can also be seen on my other boards like BBB or RPI-= B. >=20 > Any hints? >=20 > Thanks in advance. >=20 > -- > Manuel Stuehn > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"