characters; this fixed a bug that prevented the arguments to a function
from being printed symbolically. The fix was done globally; it is not
known if the "fix" fixed other bugs
SCCS-vsn: old/sdb/access.c 4.2
SCCS-vsn: old/sdb/decode.c 4.2
SCCS-vsn: old/sdb/display.c 4.3
SCCS-vsn: old/sdb/docomm.c 4.2
SCCS-vsn: old/sdb/fio.c 4.2
SCCS-vsn: old/sdb/main.c 4.2
SCCS-vsn: old/sdb/message.c 4.2
SCCS-vsn: old/sdb/old.c 4.2
SCCS-vsn: old/sdb/pcs.c 4.2
SCCS-vsn: old/sdb/prvar.c 4.3
SCCS-vsn: old/sdb/rdwr.c 4.2
SCCS-vsn: old/sdb/re.c 4.2
SCCS-vsn: old/sdb/runpcs.c 4.2
SCCS-vsn: old/sdb/setup.c 4.3
SCCS-vsn: old/sdb/sub.c 4.2
SCCS-vsn: old/sdb/symt.c 4.3
SCCS-vsn: old/sdb/udef.c 4.2
SCCS-vsn: old/sdb/version.c 4.2
SCCS-vsn: old/sdb/xeq.c 4.3
SCCS-vsn: old/sdb/cdefs.h 4.2
SCCS-vsn: old/sdb/defs.h 4.2
SCCS-vsn: old/sdb/head.h 4.3
SCCS-vsn: old/sdb/mac.h 4.2
SCCS-vsn: old/sdb/machine.h 4.2
SCCS-vsn: old/sdb/mode.h 4.2
SCCS-vsn: old/sdb/old.h 4.2
26 files changed:
-static char sccsid[] = "@(#)access.c 4.1 %G%";
+static char sccsid[] = "@(#)access.c 4.2 %G%";
-/* "@(#)cdefs.h 4.1 %G%" */
+/* "@(#)cdefs.h 4.2 %G%" */
/* type modifiers */
# define PTR 020
/* type modifiers */
# define PTR 020
-static char sccsid[] = "@(#)decode.c 4.1 %G%";
+static char sccsid[] = "@(#)decode.c 4.2 %G%";
#include "head.h"
/* decode() - read a line from standard input and decode it */
#include "head.h"
/* decode() - read a line from standard input and decode it */
-/* "@(#)defs.h 4.1 %G%" */
+/* "@(#)defs.h 4.2 %G%" */
-static char sccsid[] = "@(#)display.c 4.2 %G%";
+static char sccsid[] = "@(#)display.c 4.3 %G%";
#include "head.h"
#include <a.out.h>
#include <stab.h>
#include "head.h"
#include <a.out.h>
#include <stab.h>
/* MACHINE DEPENDENT */
ADDR
formaddr(class, addr)
/* MACHINE DEPENDENT */
ADDR
formaddr(class, addr)
ADDR addr; {
if (debug) printf("formaddr(%o, %d)\n", class & 0377, addr);
switch(class & STABMASK) {
ADDR addr; {
if (debug) printf("formaddr(%o, %d)\n", class & 0377, addr);
switch(class & STABMASK) {
idbkpt() {
register BKPTR bkptr;
register int yesflg, cnt;
idbkpt() {
register BKPTR bkptr;
register int yesflg, cnt;
prfrx(top) {
int narg;
long offset;
prfrx(top) {
int narg;
long offset;
register int endflg;
char *p;
struct proct *procp;
register int endflg;
char *p;
struct proct *procp;
narg = get(argp, DSP);
if (narg & ~0xff) narg = 0;
argp += WORDSIZE;
narg = get(argp, DSP);
if (narg & ~0xff) narg = 0;
argp += WORDSIZE;
-static char sccsid[] = "@(#)docomm.c 4.1 %G%";
+static char sccsid[] = "@(#)docomm.c 4.2 %G%";
#include <signal.h>
#include "head.h"
#include <a.out.h>
#include <signal.h>
#include "head.h"
#include <a.out.h>
-static char sccsid[] = "@(#)fio.c 4.1 %G%";
+static char sccsid[] = "@(#)fio.c 4.2 %G%";
/*
* sdb - a symbolic debugger for unix - source file access routines.
*/
/*
* sdb - a symbolic debugger for unix - source file access routines.
*/
-/* "@(#)head.h 4.2 %G%" */
+/* "@(#)head.h 4.3 %G%" */
#include <sys/vm.h>
#define PAGSIZ (CLSIZE*NBPG)
#include <stdio.h>
#include <sys/vm.h>
#define PAGSIZ (CLSIZE*NBPG)
#include <stdio.h>
#else
char *sl_name;
#endif
#else
char *sl_name;
#endif
short sl_type;
int sl_size, sl_addr;
int subflag;
short sl_type;
int sl_size, sl_addr;
int subflag;
char odesc[10]; /* descriptor of last displayed variable */
ADDR oaddr; /* address of last displayed variable */
char otype; /* type of last displayed variable */
char odesc[10]; /* descriptor of last displayed variable */
ADDR oaddr; /* address of last displayed variable */
char otype; /* type of last displayed variable */
-char oclass; /* class of last displayed variable */
+u_char oclass; /* class of last displayed variable */
char oincr; /* size of last displayed variable */
struct sgttyb sdbttym, userttym;
/* tty modes for sdb and user */
char oincr; /* size of last displayed variable */
struct sgttyb sdbttym, userttym;
/* tty modes for sdb and user */
-/* "@(#)mac.h 4.1 %G%" */
+/* "@(#)mac.h 4.2 %G%" */
-/* "@(#)machine.h 4.1 %G%" */
+/* "@(#)machine.h 4.2 %G%" */
/*
* UNIX/vax debugger
*/
/*
* UNIX/vax debugger
*/
-static char sccsid[] = "@(#)main.c 4.1 %G%";
+static char sccsid[] = "@(#)main.c 4.2 %G%";
-static char sccsid[] = "@(#)message.c 4.1 %G%";
+static char sccsid[] = "@(#)message.c 4.2 %G%";
-/* "@(#)mode.h 4.1 %G%" */
+/* "@(#)mode.h 4.2 %G%" */
#include "machine.h"
/*
* UNIX debugger
#include "machine.h"
/*
* UNIX debugger
-static char sccsid[] = "@(#)old.c 4.1 %G%";
+static char sccsid[] = "@(#)old.c 4.2 %G%";
/*
* sdb - a symbolic debugger for UNIX.
*/
/*
* sdb - a symbolic debugger for UNIX.
*/
-/* "@(#)old.h 4.1 %G%" */
+/* "@(#)old.h 4.2 %G%" */
#ifndef VMUNIX
struct brbuf {
int nl, nr;
#ifndef VMUNIX
struct brbuf {
int nl, nr;
-static char sccsid[] = "@(#)pcs.c 4.1 %G%";
+static char sccsid[] = "@(#)pcs.c 4.2 %G%";
-static char sccsid[] = "@(#)prvar.c 4.2 %G%";
+static char sccsid[] = "@(#)prvar.c 4.3 %G%";
#include "head.h"
#include <a.out.h>
#include <stab.h>
#include "head.h"
#include <a.out.h>
#include <stab.h>
*/
outvar(proc, var, fmt, metaflag, addr, class, subflag, prnamep,
comblk, prvar)
*/
outvar(proc, var, fmt, metaflag, addr, class, subflag, prnamep,
comblk, prvar)
-ADDR addr; char *proc, *var, *fmt, *prnamep, *comblk; int class; {
+ADDR addr; char *proc, *var, *fmt, *prnamep, *comblk; u_char class; {
char *p, *q, *r, *oldpr;
register int match;
long soffset, goffset;
char *p, *q, *r, *oldpr;
register int match;
long soffset, goffset;
* type == 1 => use addr for value to print
*/
dispf(addr, desc, class, type, size, subflag, space)
* type == 1 => use addr for value to print
*/
dispf(addr, desc, class, type, size, subflag, space)
char *desc; short type; ADDR addr; {
dispx(addr, desc, class, type, size, subflag, DSP);
printf("\n");
char *desc; short type; ADDR addr; {
dispx(addr, desc, class, type, size, subflag, DSP);
printf("\n");
/* display addr in instruction space using format desc or class s */
/* returns -1 if bad address */
dispi(addr, desc, class, type, size, subflag, space)
/* display addr in instruction space using format desc or class s */
/* returns -1 if bad address */
dispi(addr, desc, class, type, size, subflag, space)
char *desc; short type; ADDR addr; {
register i;
i = dispx(addr, desc, class, type, size, subflag, ISP);
char *desc; short type; ADDR addr; {
register i;
i = dispx(addr, desc, class, type, size, subflag, ISP);
char pd[3];
dispx(addr, desc, class, type, size, subflag, space)
char pd[3];
dispx(addr, desc, class, type, size, subflag, space)
char *desc; short type; ADDR addr; {
int i, sflag;
char *p;
char *desc; short type; ADDR addr; {
int i, sflag;
char *p;
case 'g':
dbl.ww.w1 = value;
case 'g':
dbl.ww.w1 = value;
- dbl.ww.w2 = (class == (char) N_RSYM) ?
+ dbl.ww.w2 = (class == N_RSYM) ?
*(ADDR *)(((ADDR) &u)+R0+(WORDSIZE)*(addr+1)) :
getval(addr+WORDSIZE, 'd', space);
printf("%.13g", dbl.d);
*(ADDR *)(((ADDR) &u)+R0+(WORDSIZE)*(addr+1)) :
getval(addr+WORDSIZE, 'd', space);
printf("%.13g", dbl.d);
/* print variable as in prvar */
printit(metaflag, prvar, addr, desc, class, type, size, subflag, space)
/* print variable as in prvar */
printit(metaflag, prvar, addr, desc, class, type, size, subflag, space)
char *desc; short type; ADDR addr; {
if (prvar == 0)
return;
char *desc; short type; ADDR addr; {
if (prvar == 0)
return;
-static char sccsid[] = "@(#)rdwr.c 4.1 %G%";
+static char sccsid[] = "@(#)rdwr.c 4.2 %G%";
/*
* sdb - a symbolic debugger for unix - source file access routines.
*/
/*
* sdb - a symbolic debugger for unix - source file access routines.
*/
-static char sccsid[] = "@(#)re.c 4.1 %G%";
+static char sccsid[] = "@(#)re.c 4.2 %G%";
#include "head.h"
#define CBRA 1
#define CCHR 2
#include "head.h"
#define CBRA 1
#define CCHR 2
-static char sccsid[] = "@(#)runpcs.c 4.1 %G%";
+static char sccsid[] = "@(#)runpcs.c 4.2 %G%";
-static char sccsid[] = "@(#)setup.c 4.2 %G%";
+static char sccsid[] = "@(#)setup.c 4.3 %G%";
-static char sccsid[] = "@(#)sub.c 4.1 %G%";
+static char sccsid[] = "@(#)sub.c 4.2 %G%";
#include "head.h"
#include <a.out.h>
#include <stab.h>
#include "head.h"
#include <a.out.h>
#include <stab.h>
/* gets indirect address for pointers and subscripts */
getindir(class, addr, type)
/* gets indirect address for pointers and subscripts */
getindir(class, addr, type)
ADDR addr; {
if (ISARY(type)) return(addr);
if (class == N_RSYM)
ADDR addr; {
if (ISARY(type)) return(addr);
if (class == N_RSYM)
-static char sccsid[] = "@(#)symt.c 4.2 %G%";
+static char sccsid[] = "@(#)symt.c 4.3 %G%";
#include "head.h"
#include <a.out.h>
#include <stab.h>
#include "head.h"
#include <a.out.h>
#include <stab.h>
long soffset;
int i, gflag = 0;
long soffset;
int i, gflag = 0;
register char *p, *q;
#ifdef FLEXNAMES
register char *p, *q;
#ifdef FLEXNAMES
if (bread(&sbuf, &stentry, sizeof stentry)
< sizeof stentry)
error("Bad N_SO entry (1)");
if (bread(&sbuf, &stentry, sizeof stentry)
< sizeof stentry)
error("Bad N_SO entry (1)");
- if ((stentry.n_type & STABMASK) !=
- (unsigned char) class)
+ if ((stentry.n_type & STABMASK) != class)
error("Bad N_SO entry (2)");
soffset += sizeof stentry;
}
error("Bad N_SO entry (2)");
soffset += sizeof stentry;
}
long poffset; char *pat, *comblk; {
register int i;
register long offset;
long poffset; char *pat, *comblk; {
register int i;
register long offset;
+ char *q;
+ u_char class;
struct nlist stentry;
struct proct *procp, *p;
struct nlist stentry;
struct proct *procp, *p;
char *pat; long filestart; {
register int offset, i;
struct nlist stentry;
char *pat; long filestart; {
register int offset, i;
struct nlist stentry;
+ int clevel;
+ u_char class;
if (debug) printf("globallookup(%s,%d)\n", pat,filestart);
blseek(&sbuf, filestart, 0);
if (debug) printf("globallookup(%s,%d)\n", pat,filestart);
blseek(&sbuf, filestart, 0);
if (bread(&sbuf, &stentry, sizeof stentry)
< sizeof stentry)
error("Bad N_SO entry (1)");
if (bread(&sbuf, &stentry, sizeof stentry)
< sizeof stentry)
error("Bad N_SO entry (1)");
- if ((stentry.n_type & STABMASK) !=
- (unsigned char) N_SOL)
+ if ((stentry.n_type & STABMASK) != (u_char)N_SOL)
error("Bad N_SO entry (2)");
}
#else
error("Bad N_SO entry (2)");
}
#else
char pctypes[] = {N_GSYM, N_STSYM, N_LCSYM, N_RSYM, N_SSYM, N_LSYM,
N_PSYM, 0};
varclass(class)
char pctypes[] = {N_GSYM, N_STSYM, N_LCSYM, N_RSYM, N_SSYM, N_LSYM,
N_PSYM, 0};
varclass(class)
char *p;
for (p=pctypes; *p; p++) {
char *p;
for (p=pctypes; *p; p++) {
-static char sccsid[] = "@(#)udef.c 4.1 %G%";
+static char sccsid[] = "@(#)udef.c 4.2 %G%";
#include <sys/param.h>
char u[ctob(UPAGES)]; /* struct user u */
#include <sys/param.h>
char u[ctob(UPAGES)]; /* struct user u */
-static char sccsid[] = "@(#)version.c 4.1 %G%";
+static char sccsid[] = "@(#)version.c 4.2 %G%";
version() {
error("Version 2.6 - February 1, 1980");
}
version() {
error("Version 2.6 - February 1, 1980");
}
-static char sccsid[] = "@(#)xeq.c 4.2 %G%";
+static char sccsid[] = "@(#)xeq.c 4.3 %G%";
#include "head.h"
#include <a.out.h>
#include <stab.h>
#include "head.h"
#include <a.out.h>
#include <stab.h>