From owner-freebsd-arm@freebsd.org Mon May 29 19:39:40 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A993AD7E359 for ; Mon, 29 May 2017 19:39:40 +0000 (UTC) (envelope-from rj@obsigna.com) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15539119A; Mon, 29 May 2017 19:39:39 +0000 (UTC) (envelope-from rj@obsigna.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1496086776; l=3156; s=domk; d=obsigna.com; h=To:References:Content-Transfer-Encoding:Cc:Date:In-Reply-To:From: Subject:Mime-Version:Content-Type; bh=MFhXuBND8mob/+CzsmHjkyhYnpPiR0emkGNsBx+uk4c=; b=dKsYy91QRYt6agOCMv4eLRFS2R/jxL2zzXZLARPK6fn6h9IeVxirCrRttGYTZVaxv/ S1AtGJo+7P80jFcpFE34usfQK4FVohj3l5pmg/RmT4Aqk+m8Zutgl5c+HyK52Jnz7RCg BG1HD9HjQ/MgI1JDj0pVZMhNKsBGaRwFZ3hYc= X-RZG-AUTH: :O2kGeEG7b/pS1EK7WHa0hxqKZr4lnx6UhT0M0o35iAdWtoM07Gt3wQHFGhIm99LihP4= X-RZG-CLASS-ID: mo00 Received: from mail.obsigna.com (bb02afdb.virtua.com.br [187.2.175.219]) by smtp.strato.de (RZmta 40.7 DYNA|AUTH) with ESMTPSA id I04b7dt4TJdYnXD (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 29 May 2017 21:39:34 +0200 (CEST) Received: from rolf.projectworld.net (rolf.projectworld.net [192.168.222.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.obsigna.com (Postfix) with ESMTPSA id 6046D76F0B55; Mon, 29 May 2017 16:39:31 -0300 (BRT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: lldb on BeagleBone Black From: "Dr. Rolf Jansen" In-Reply-To: Date: Mon, 29 May 2017 16:39:29 -0300 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0FB71E50-DF25-461A-9925-1CF295ABB599@obsigna.com> References: <3DA2368D-AE7B-4D69-A634-2861D2EFA9AE@obsigna.com> <8FDE5FCC-9BA8-4601-A32E-04FBAB5FFBEA@obsigna.com> <1C1DA369-0BF1-4E22-A998-1E36CDC1A203@obsigna.com> To: Ed Maste X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 May 2017 19:39:40 -0000 > Am 29.05.2017 um 12:08 schrieb Ed Maste : >=20 > On 28 May 2017 at 10:34, Dr. Rolf Jansen wrote: >> This is only a follow-up notice. >>=20 >> I reliably managed to build (lldb + clang/lld) from the svn trunk of = LLVM 5.0.0 on my Beaglebone Black running the latest snapshot (May 20th) = of FreeBSD 12.0-CURRENT, and the lldb is working very well, and this = includes single stepping and ncurses-GUI mode, while single stepping = with the latest lldb 4.0.1 from the ports does not work. >=20 > Thanks for the follow-up, and for your persistence in trying to build > LLDB on the BBB! >=20 > In what way is the UTF-8 output broken? First of all, my system's locale is: LANG=3Den_US.UTF-8 LC_CTYPE=3D"en_US.UTF-8" LC_COLLATE=3D"en_US.UTF-8" LC_TIME=3D"en_US.UTF-8" LC_NUMERIC=3D"en_US.UTF-8" LC_MONETARY=3D"en_US.UTF-8" LC_MESSAGES=3D"en_US.UTF-8" LC_ALL=3D $echo $TERM xterm-256color Now, please consider the following tiny ncurses test program = 'cursutf8.c', which prints out the traditional German pangram for = testing the special characters '=C3=A4', '=C3=B6', '=C3=BC', '=C3=9F', = each of which consists of two bytes when encoded in UTF8: #include #include #include #include int main(int argc, char *argv[]) { setlocale(LC_CTYPE, ""); WINDOW *window =3D initscr(); if (window) { mvaddstr(3, 3, "Zw=C3=B6lf Boxk=C3=A4mpfer jagen Viktor quer =C3=BCb= er den gro=C3=9Fen Sylter Deich."); refresh(); sleep(3); delwin(window); endwin(); refresh(); return 0; } else return 1; } I compile this using: $clang -g -O0 cursutf8.c -lncursesw -o cursutf8 When I run it, it correctly prints out: Zw=C3=B6lf Boxk=C3=A4mpfer jagen Viktor quer =C3=BCber den gro=C3=9Fen = Sylter Deich. Then I start this with lldb: $lldb -- cursutf8 (lldb) breakpoint set -f cursutf8.c -l 13 (lldb) run Process 13886 stopped * thread #1, name =3D 'cursutf8', stop reason =3D breakpoint 1.1 frame #0: 0x00008a08 cursutf8`main(argc=3D1, argv=3D0xbfbfec74) at = cursutf8.c:13 10 WINDOW *window =3D initscr(); 11 if (window) 12 { -> 13 mvaddstr(3, 3, "Zw=C3=B6lf Boxk=C3=A4mpfer jagen Viktor = quer =C3=BCber den gro=C3=9Fen Sylter Deich."); 14 refresh(); 15 sleep(3); 16 =09 So far this is OK as well. The issue shows up, when I enter into the GUI mode: (lldb) gui =E2=94=82 10 =E2=94=82 WINDOW *window =3D initscr(); = =20 =E2=94=82 11 =E2=94=82 if (window) = =20 =E2=94=82 12 =E2=94=82 { = =20 =E2=94=82 13 =E2=94=82=E2=97=86 mvaddstr(3, 3, "ZwM-CM-6lf = BoxkM-CM-$mpfer jagen Viktor quer M-CM-