public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* i8086 debugging issues.
@ 2005-09-22  4:10 Scott Robinson
  0 siblings, 0 replies; only message in thread
From: Scott Robinson @ 2005-09-22  4:10 UTC (permalink / raw)
  To: gdb

[-- Attachment #1: Type: text/plain, Size: 602 bytes --]

I am attempting to debug i8086 (16-bit) code with gdb, but am running
into a problem. This problem occurs with the gdb remotes in both bochs
and qemu.

My issue is the program counter. Specifically, $pc is mapped to $eip -
which isn't strictly valid in 16-bit mode. To obtain information about
the actual current $pc, I need to perform the calculation manually.
(($cs << 4) + $eip)

Manually setting $pc causes the system to panic, obviously. :-(

In short, is there a way to make gdb cognizent of the segment registers?

Scott.

-- 
http://quadhome.com/            - Personal webpage

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

only message in thread, other threads:[~2005-09-22  4:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22  4:10 i8086 debugging issues Scott Robinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).