From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21573 invoked by alias); 17 Oct 2009 12:55:27 -0000 Received: (qmail 21564 invoked by uid 22791); 17 Oct 2009 12:55:26 -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; Sat, 17 Oct 2009 12:55:20 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mz8oZ-0002tO-K8 for gdb@sourceware.org; Sat, 17 Oct 2009 05:55:19 -0700 Message-ID: <25938062.post@talk.nabble.com> Date: Sat, 17 Oct 2009 16:11:00 -0000 From: fpga To: gdb@sourceware.org Subject: Re: stepping through a flat binary in qemu In-Reply-To: <25936753.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <25936753.post@talk.nabble.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/msg00281.txt.bz2 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. > > Its ok I've sorted it using this thread http://qemu-forum.ipi.fi/viewtopic.php?f=22&t=4544 Thanks very much dhbaird! If there's any more useful advice re this I'd appreciate it -- View this message in context: http://www.nabble.com/stepping-through-a-flat-binary-in-qemu-tp25936753p25938062.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.