Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9115887
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T04:32:24+00:00 2026-06-17T04:32:24+00:00

There seems to be a problem with the Freedos bootloader. (It appears that the

  • 0

There seems to be a problem with the Freedos bootloader. (It appears that the bootcode can’t find the kernel in certain circumstances.)

So I’m trying to debug the bootloader in qemu with gdb. Following the instructions found on several wiki and freely available online course materials, I run qemu like this

qemu-system-i386 -fda fdboot.img -boot a -s -S

And then connect gdb like this

$ gdb
(gdb) target remote localhost:1234

I can step through the first 10 – 12 instructions with si which I assume is the SeaBIOS.

But past that, when I try to step into bootloader code, it continues execution without breaking, all the way up to the FreeDos menu prompt. This totally skips the bootloader code which I would like to examine step by step as it is executed.

What do I need to do so that I can step though the bootloader?

[You can download the freedos floppy images from the project website if you want to try yourself.]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T04:32:25+00:00Added an answer on June 17, 2026 at 4:32 am

    Works fine here using qemu 1.3 and gdb 7.3.50.20111117 (you didn’t say what versions you used).
    I was able to single step tons of instructions until I got bored and placed a breakpoint to catch the bootloader:

    (gdb) br *0x7c00
    Breakpoint 1 at 0x7c00
    (gdb) c
    Continuing.
    
    Breakpoint 1, 0x00007c00 in ?? ()
    (gdb) x/i $eip
    => 0x7c00:      jmp    0x7c3e
    

    Note that I have set gdb to 16 bit mode first using set architecture i8086.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It appears after much searching that there seems to be a common problem when
I've found that there seems to be a problem using css transitions properties when
I want to test the phpDocumentor-alpha, and there's a problem that some people seems
I've just started using JSFiddle.net and there seems to be a problem that the
There seems to be a problem when using KeyListener on fillPolygon/drawPolygon. I can't move
There seems to be a problem between how PHP engine handles identical files that
There seems to be a problem between how PHP engine handles identical files that
There seems to be a problem in the way that I am declaring my
There seems to be a problem with my DOM, in that the style of
I just implemented a multi-language mod onto my website. Problem is that there seems

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.