Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2015 22:05:05 +0000
From:      =?iso-8859-1?Q?Wei=DF=2C__Dr=2E_J=FCrgen?= <weiss@uni-mainz.de>
To:        =?iso-8859-1?Q?=27Manuel_St=FChn=27?= <freebsdnewbie@freenet.de>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   RE: gdb on armv6
Message-ID:  <549bd3f33fcb43218ddeac53947702e9@e15be-03.zdv.Uni-Mainz.DE>
In-Reply-To: <20150503120604.2db4bdcf@freebsd-lt.fritz.box>

index | next in thread | previous in thread | raw e-mail

With FreeBSD current and option ARM_NEW_PMAP you should have at least
svn revision=282151. 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-26407

> -----Original Message-----
> From: owner-freebsd-arm@freebsd.org [mailto:owner-freebsd-arm@freebsd.org] On Behalf Of
> Manuel Stühn
> Sent: Sunday, May 03, 2015 12:06 PM
> To: freebsd-arm@freebsd.org
> Subject: gdb on armv6
> 
> 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 <stdio.h>
> #include <stdlib.h>
> 
> 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
> _______________________________________________
> 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"


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?549bd3f33fcb43218ddeac53947702e9>