From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19353 invoked by alias); 17 Oct 2009 09:39:04 -0000 Received: (qmail 19343 invoked by uid 22791); 17 Oct 2009 09:39:04 -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 09:39:01 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mz5kZ-0007B6-K6 for gdb@sourceware.org; Sat, 17 Oct 2009 02:38:59 -0700 Message-ID: <25936753.post@talk.nabble.com> Date: Sat, 17 Oct 2009 12:55:00 -0000 From: fpga To: gdb@sourceware.org Subject: stepping through a flat binary in qemu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00280.txt.bz2 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. -- View this message in context: http://www.nabble.com/stepping-through-a-flat-binary-in-qemu-tp25936753p25936753.html Sent from the Sourceware - gdb list mailing list archive at Nabble.com.