This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re:
- To: takis at XFree86 dot Org
- Subject: Re:
- From: Mark Kettenis <kettenis at wins dot uva dot nl>
- Date: Sat, 24 Jun 2000 15:01:42 +0200
- CC: gdb at sourceware dot cygnus dot com
- References: <Pine.BSF.4.05.10006221115120.1946-100000@public.xfree86.org>
Date: Thu, 22 Jun 2000 11:26:04 -0700 (PDT)
From: Takis Psarogiannakopoulos <takis@XFree86.Org>
Dear Mark,
Thank you for answering this. Yes I know that FPU regs are short ints
(some of them) and I use the correct structs when I want to print
them. However by adding to i386dgux.mt the file i387-tdep.o we have an
immediate problem. It doesnt compile as it needs defs such as
FCOFF_REGNUM etc ... so there the question what is what.
That is where my e-mail was targetting. For the story I have ported
gdb-4.18 to DG/UX and sources are in ftp.xfree86.org
pub/XFree86/3.3.6/binaries/DGUX-ix86/GDB_BETA. (if you have time
take a look in the file there gdb/i386dgux-nat.c to verify that
I ma treating correctll the fpu regs). That port (fully working)
never make it to the oficcial 5.0 for several reasons (mailnly I had not
the time to request and sign copyright assignments for the *several* parts
of gdb as bfd, etc etc ...!
I've taken a look at the stuff now. However, since the FPU stuff is
rather different in 5.0, I don't think it's very useful to comment on
the way you handle things in your 4.18 based port. If you follow my
advice you shouldn't have to do any significant manipulations on the
FPU state at all, and you could remove most of your home-grown FPU
stuff from i386dgux-nat.c.
It would be great if you could contribute your DG/UX port back to the
FSF. Indeed we need a copyright assignment first. If you can find
the time to do them, please do so ASAP. They take some time being
processed.
Before we can integrate your DG/UX port into the official GDB tree,
some bits will have to be cleaned up. First of all, you'll have to
base your work on the current development version. Working from
snapshots is fine, but working from CVS is much more convenient.
Right now there is quite a bit of code duplication, and we'll have to
try to reduce that a bit. You've alse added some DG/UX-specific
#ifdefs that will have to be eliminated. I'll be happy to work
together on those issues.
Now since I dont have CVS I would be greatfull if you send the files
i387-nat.c and latest i386bsd.c ...
Since you told me you downloaded a recent snapshot, you probably
already have them. If you still need those files, drop me a mail.
Mark