From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45598) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJ0uT-0008AS-3E for qemu-devel@nongnu.org; Thu, 27 Feb 2014 08:22:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJ0uK-0001YR-Md for qemu-devel@nongnu.org; Thu, 27 Feb 2014 08:21:57 -0500 Received: from mail-pd0-x236.google.com ([2607:f8b0:400e:c02::236]:55253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJ0uK-0001YF-F5 for qemu-devel@nongnu.org; Thu, 27 Feb 2014 08:21:48 -0500 Received: by mail-pd0-f182.google.com with SMTP id g10so1371217pdj.27 for ; Thu, 27 Feb 2014 05:21:47 -0800 (PST) Message-ID: <530F3BE7.9060704@gmail.com> Date: Thu, 27 Feb 2014 21:21:43 +0800 From: Xuebing wang MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Debugging aarch64 guest running on Foundationv8 model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , Jani Kokkonen Cc: Claudio Fontana , QEMU Developers Hi Jani, Is below video similar to what you want? This video shows cross-debug armv8 linux kernel (using armv8-gdb + armv8-qemu). http://www.youtube.com/watch?v=MLu5EzheHIM On 02/27/2014 05:52 PM, Peter Maydell wrote: > On 27 February 2014 09:45, Jani Kokkonen wrote: >> Hi, >> >> I would like to debug a Qemu guest linux kernel under Foundationv8 model and >> I tried the following setup: >> >> 1. Foundationv8 model started with --network=nat and >> --network-nat-ports=1234=1234 options >> 2. In Foundationv8 model I started qemu-system-aarch64 with the command >> line: >> >> ./qemu-system-aarch64 -M virt -cpu host -kernel Image -serial stdio >> -display none -enable-kvm -gdb tcp::1234 -S >> >> 3. I start debugging the guest kernel with aarch64-linux-gnu-gdb vmlinux >> and with target remote:1234 command. >> >> However when I set any breakpoint I will get error message: >> "Cannot insert breakpoint 1. >> Error accessing memory address 0xffffffc000636498: Unknown error -1" >> In addition stepi or any other run related command does not work. > You would need to implement breakpoint support for AArch64 in > both KVM and QEMU, I think. That feature is currently not implemented. > > thanks > -- PMM > > -- Thanks, Xuebing Wang