[gnu.gdb.bug] Changes to gdb 3.2 for SysV 386

johnl@esegue.segue.boston.ma.us (John R. Levine) (09/18/89)

I found that I had to make a few changes to the distrbuted gdb in order to
make it on 386/ix 2.0.x, which is essentially SysV 3.2.  One of the fields
in the u. block has changed its name, and there is an ifdef confusion due
to the system having a lot of v7 ioctl calls that it inherited via Xenix.

********** i386-dep.c ***********
1175c1175,1176
<   uaddr = (char *)&u.u_fpstate - (char *)&u;
---
>   /* uaddr = (char *)&u.u_fpstate - (char *)&u; */
>   uaddr = (char *)&u.u_fps.u_fpstate - (char *)&u;
********** inflow.c ***********
43a44
> #undef TIOCGETC		/* jrl: avoid confusion on Unix/xenix merged sys */

In readline/readline.c, you need to remove the declarations for getpwuid() and
getpwent(), because they conflict with the ones in system headers, and you
also need to remove the "static" before the declaration of rl_prep_terminal.

It works reasonably well, though it complains that some of the it
doesn't understand some of the symbol table entries it gets from gcc,
a problem I have yet to track down.  Nonetheless, it's quite usable as is.
-- 
John R. Levine, Segue Software, POB 349, Cambridge MA 02238, +1 617 492 3869
johnl@esegue.segue.boston.ma.us, {ima|lotus}!esegue!johnl, Levine@YALE.edu
Massachusetts has 64 licensed drivers who are over 100 years old.  -The Globe