From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1380 invoked by alias); 18 Oct 2009 11:18:55 -0000 Received: (qmail 1372 invoked by uid 22791); 18 Oct 2009 11:18:54 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 18 Oct 2009 11:18:50 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1MzTmj-0003UT-26 for gdb@sourceware.org; Sun, 18 Oct 2009 04:18:49 -0700 Message-ID: <25945835.post@talk.nabble.com> Date: Sun, 18 Oct 2009 16:18:00 -0000 From: fpga To: gdb@sourceware.org Subject: Re: stepping through a flat binary in qemu In-Reply-To: <4AD9F759.3010807@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <25936753.post@talk.nabble.com> <4AD9F759.3010807@vmware.com> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00293.txt.bz2 Michael Snyder-6 wrote: > > fpga wrote: >> Hi. >> I'm trying to step through a tiny real-to-pmode os in qemu using gdb. >> >> I'm using >> nasm -f bin emakeimg.asm -o enth.fbin >> to assemble the thing and then pasting the 16bit flat binary to a floppy >> image >> i.e. no debugging symbols. >> >> I've booted the os in qemu with >> "qemu -s -S -fda boot.img -boot a" >> & also without "-s" (use gstabs) >> >> In another terminal I debug the same image and connect to qemu via >> "target remote localhost:1234". >> If I type "cont" the OS starts to execute. >> >> If I try to step by typing "break" gdb complains about no symbols. >> Is it possible to step through this 16 bit bootloader code and into the >> OS >> proper with no symbols & if not what's the easiest way of putting symbols >> in. >> >> I have a problem that if I try to assemble as elf, I have multiple [ORG >> statements in the code] which only bin files recognise. >> >> Any help much appreciated. > > Probably need to use stepi, since step depends on line symbols. > > Yes that works Thanks Michael -- View this message in context: http://www.nabble.com/stepping-through-a-flat-binary-in-qemu-tp25936753p25945835.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.