[676] in NetBSD-Development
wanted: gdb that disassembles 16-bit code, and/or equivalent
daemon@ATHENA.MIT.EDU (John Kohl)
Wed Mar 15 13:45:18 1995
Date: Wed, 15 Mar 1995 13:42:04 -0500
From: John Kohl <jtk@atria.com>
To: port-i386@netbsd.org, eichin@cygnus.com, raeburn@cygnus.com,
linux-help@MIT.EDU, netbsd-dev@MIT.EDU
I'm hacking on dosemu/NetBSD, and I would very much like to be able to
disassemble 80x86 code that assumes it's in a 16-bit segment. gdb
appears to always assume a 32-bit segment when interpreting instructions.
This especially matters for things that use immediate constants whose
size is a function of the default operand size.
Is there a way to coerce gdb into 16-bit disassembly mode? Is there
some other tool I could use? (I'd prefer teaching gdb, since that would
let me do live debugging rather than post-mortems).
==John