From: Pierre-Alexandre Meyer <pierre@mouraf.org>
To: gdb@sourceware.org
Subject: gdb and segment registers
Date: Mon, 23 Feb 2009 03:31:00 -0000 [thread overview]
Message-ID: <20090223033114.GB3005@panda> (raw)
Good evening,
I am developing an application at the bootloader level that
eventually jumps into protected mode. My testing is done using a virtual
machine (tried via qemu and VMware Workstation) and remotely connecting
gdb (Ubuntu Intrepid build - 6.8-debian) to it.
It works great until the application jumps into protected mode when gdb
becomes really confused.
Setting a break point at the first function after protected mode doesn't
work.
With no break points, if I SIGINT the program after the jump, gdb is
confused:
Backtrace stopped: previous frame inner to this frame (corrupt
stack?)
I suppose this is because the segment registers were changed. Do I need to
reload them somehow? I do have access to the registers but have no idea
how accurate they are. Is there a way to read the descriptor tables and
segment registers? This could help checking gdb's state.
Thank you.
(Please CC: me when replying, since I am not on the list)
--
Pierre-Alexandre Meyer
reply other threads:[~2009-02-23 3:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20090223033114.GB3005@panda \
--to=pierre@mouraf.org \
--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