Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb and segment registers
@ 2009-02-23  3:31 Pierre-Alexandre Meyer
  0 siblings, 0 replies; only message in thread
From: Pierre-Alexandre Meyer @ 2009-02-23  3:31 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-02-23  3:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-23  3:31 gdb and segment registers Pierre-Alexandre Meyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox