From: Michael Snyder <msnyder@vmware.com>
To: fpga <mgbg25171@blueyonder.co.uk>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: stepping through a flat binary in qemu
Date: Sat, 17 Oct 2009 23:03:00 -0000 [thread overview]
Message-ID: <4AD9F759.3010807@vmware.com> (raw)
In-Reply-To: <25936753.post@talk.nabble.com>
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.
next prev parent reply other threads:[~2009-10-17 17:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 12:55 fpga
2009-10-17 16:11 ` fpga
2009-10-17 23:03 ` Michael Snyder [this message]
2009-10-18 16:18 ` fpga
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AD9F759.3010807@vmware.com \
--to=msnyder@vmware.com \
--cc=gdb@sourceware.org \
--cc=mgbg25171@blueyonder.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox