From: fpga <mgbg25171@blueyonder.co.uk>
To: gdb@sourceware.org
Subject: stepping through a flat binary in qemu
Date: Sat, 17 Oct 2009 12:55:00 -0000 [thread overview]
Message-ID: <25936753.post@talk.nabble.com> (raw)
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.
next reply other threads:[~2009-10-17 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-17 12:55 fpga [this message]
2009-10-17 16:11 ` fpga
2009-10-17 23:03 ` Michael Snyder
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=25936753.post@talk.nabble.com \
--to=mgbg25171@blueyonder.co.uk \
--cc=gdb@sourceware.org \
/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