🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #261

Changes to gdb 3.2 for SysV 386

#261
From: John R. Levine
Date: Mon, 18 Sep 1989 15:04
26 lines
1776 bytes
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
Technical Details
Message-ID: <1989Sep18.150415.1443@esegue.segue.boston.ma.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!lll-winken!bu-cs!spdcc!ima!esegue!johnl

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!sun-barr!lll-winken!bu-cs!spdcc!ima!esegue!johnl
From: johnl@esegue.segue.boston.ma.us (John R. Levine)
Newsgroups: gnu.gdb.bug
Subject: Changes to gdb 3.2 for SysV 386
Message-ID: <1989Sep18.150415.1443@esegue.segue.boston.ma.us>
Date: 18 Sep 89 15:04:15 GMT
Reply-To: johnl@esegue.segue.boston.ma.us (John R. Levine)
Distribution: gnu
Organization: Segue Software, Cambridge MA
Lines: 26