From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VyGeS-00019S-Jw for qemu-devel@nongnu.org; Wed, 01 Jan 2014 02:55:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VyGeR-0006PV-Ot for qemu-devel@nongnu.org; Wed, 01 Jan 2014 02:55:40 -0500 MIME-Version: 1.0 Date: Wed, 1 Jan 2014 12:55:38 +0500 Message-ID: From: Maryyam Muhammad Din Content-Type: multipart/alternative; boundary=001a11c291e6b5129504eee40073 Subject: [Qemu-devel] Debugging bootloader with gdb in qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-discuss@nongnu.org, qemu-devel@nongnu.org Cc: awaheed777@yahoo.com --001a11c291e6b5129504eee40073 Content-Type: text/plain; charset=ISO-8859-1 I am trying to debug bootloader with gdb in QEMU. I run QEMU command like this ./qemu-system-mips64 -s -S -m 1024 -M octeon -bios u-boot-octeon_ebh5610.bin -kernel vmlinux.64 -append 'coremask=001 mem=0 root=/dev/sda2' and then connect gdb using mips64-octeon-linux-gnu-gdb u-boot-octeon_ebh5610 target remote localhost:1234 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. Thank You -- Maryyam Muhammad Din Al-Khawarizmi Institute of Computer Science UET Lahore --001a11c291e6b5129504eee40073 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am trying to debug bootloader with gdb in QEMU. I run QE= MU command like this

./qemu-system-mips64 -s -S -m 1024 -M =A0octeon =A0-bios u-b= oot-octeon_ebh5610.bin =A0-kernel vmlinux.64 -append 'coremask=3D001 me= m=3D0 root=3D/dev/sda2'

and then connect gdb using

mips64-octeon-linux-gnu= -gdb u-boot-octeon_ebh5610
target remote localhost:1234

when i try to step into bootloader code, it continues e= xecution without breaking. This totally skip the bootloader code which i wa= nt to examine step by step as it execute.
Can anyone suggest, wha= t do i need to do to resolve this issue.
Thank You=A0
--
Maryyam Muhammad DinAl-Khawarizmi Institute of Computer Science
UET Lahore
--001a11c291e6b5129504eee40073--