From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyHyM-00044E-Id for qemu-devel@nongnu.org; Wed, 01 Jan 2014 04:20:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyHyH-0005Vi-SB for qemu-devel@nongnu.org; Wed, 01 Jan 2014 04:20:18 -0500 Date: Wed, 1 Jan 2014 13:27:50 +0400 From: Antony Pavlov Message-Id: <20140101132750.9264d75d31c0af009776dc37@gmail.com> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Debugging bootloader with gdb in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Maryyam Muhammad Din Cc: awaheed777@yahoo.com, qemu-devel@nongnu.org, qemu-discuss@nongnu.org On Wed, 1 Jan 2014 12:55:38 +0500 Maryyam Muhammad Din wrote: > I am trying to debug bootloader with gdb in QEMU. I run QEMU command like > this >=20 > ./qemu-system-mips64 -s -S -m 1024 -M octeon -bios > u-boot-octeon_ebh5610.bin -kernel vmlinux.64 -append 'coremask=3D001 mem= =3D0 > root=3D/dev/sda2' >=20 > and then connect gdb using >=20 > mips64-octeon-linux-gnu-gdb u-boot-octeon_ebh5610 > target remote localhost:1234 >=20 > when i try to step into bootloader code, it continues execution without > breaking. This totally skip the bootloader code which i want to examine > step by step as it execute. > Can anyone suggest, what do i need to do to resolve this issue. See this screencast: http://dir.tftpd.net:7080/~antony/mips-barebox-qemu-gdb-howto-20131219.avi This screencast will show you how to trace bootloader (barebox, http://www.= barebox.org) for MIPS malta using qemu and gdb. > Thank You > --=20 > Maryyam Muhammad Din > Al-Khawarizmi Institute of Computer Science > UET Lahore --=20 --=A0 Best regards, =A0 Antony Pavlov