projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4 release
[unix-history]
/
usr
/
src
/
cmd
/
sdb
/
setup.c
diff --git
a/usr/src/cmd/sdb/setup.c
b/usr/src/cmd/sdb/setup.c
index
8aaa15c
..
d24fd56
100644
(file)
--- a/
usr/src/cmd/sdb/setup.c
+++ b/
usr/src/cmd/sdb/setup.c
@@
-1,3
+1,4
@@
+static char sccsid[] = "@(#)setup.c 4.1 10/9/80";
#
/*
*
#
/*
*
@@
-28,9
+29,6
@@
INT argcount;
INT signo;
struct user u;
INT signo;
struct user u;
-STRING symfil = "a.out";
-STRING corfil = "core";
-
#define TXTHDRSIZ (sizeof(txthdr))
#ifndef EDDT
#define TXTHDRSIZ (sizeof(txthdr))
#ifndef EDDT
@@
-86,6
+84,9
@@
setsym()
symbas += txthdr[6]+txthdr[7];
symbas += magic==0412||magic==0413 ? (CLSIZE*NBPG) : TXTHDRSIZ;
ststart = symbas;
symbas += txthdr[6]+txthdr[7];
symbas += magic==0412||magic==0413 ? (CLSIZE*NBPG) : TXTHDRSIZ;
ststart = symbas;
+#ifdef FLEXNAMES
+ gstart = ststart+txthdr[4];
+#endif
/* set up symvec */
FI
FI
/* set up symvec */
FI
FI
@@
-95,11
+96,10
@@
setsym()
setcor()
{
setcor()
{
-#ifndef EDDT
fcor=getfile(corfil,2);
datmap.ufd=fcor;
IF read(fcor, &u, ctob(UPAGES))==ctob(UPAGES)
fcor=getfile(corfil,2);
datmap.ufd=fcor;
IF read(fcor, &u, ctob(UPAGES))==ctob(UPAGES)
-#if
def VAX135
+#if
ndef STD
ANDF (u.u_pcb.pcb_ksp & 0xF0000000L)==0x70000000L
#else
ANDF (u.u_pcb.pcb_ksp & 0xF0000000L)==0x80000000L
ANDF (u.u_pcb.pcb_ksp & 0xF0000000L)==0x70000000L
#else
ANDF (u.u_pcb.pcb_ksp & 0xF0000000L)==0x80000000L
@@
-133,10
+133,8
@@
setcor()
FI
ELSE datmap.e1 = maxfile;
FI
FI
ELSE datmap.e1 = maxfile;
FI
-#endif
}
}
-#ifndef EDDT
create(f)
STRING f;
{ int fd;
create(f)
STRING f;
{ int fd;
@@
-165,4
+163,3
@@
STRING filnam;
FI
return(fsym);
}
FI
return(fsym);
}
-#endif