aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/acid
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-02-19 18:11:39 -0500
committerRuss Cox <rsc@swtch.com>2012-02-19 18:11:39 -0500
commit443d6288386f5521efa7d49bc8ea5be04f5fd696 (patch)
tree443a41a36f0bb96502fe218c4423a9e5571d7e17 /src/cmd/acid
parent60d96f2e4385f0b4cee12add6dea545880a0e6a1 (diff)
downloadplan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.tar.gz
plan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.tar.bz2
plan9port-443d6288386f5521efa7d49bc8ea5be04f5fd696.zip
libmach, acid, db: 64-bit support
Diffstat (limited to 'src/cmd/acid')
-rw-r--r--src/cmd/acid/acid.h4
-rw-r--r--src/cmd/acid/builtin.c8
-rw-r--r--src/cmd/acid/exec.c2
-rw-r--r--src/cmd/acid/expr.c6
-rw-r--r--src/cmd/acid/list.c4
-rw-r--r--src/cmd/acid/main.c5
6 files changed, 16 insertions, 13 deletions
diff --git a/src/cmd/acid/acid.h b/src/cmd/acid/acid.h
index e58e9b13..d83d7c09 100644
--- a/src/cmd/acid/acid.h
+++ b/src/cmd/acid/acid.h
@@ -192,7 +192,7 @@ struct String
int len;
};
-int acidregsrw(Regs*, char*, ulong*, int);
+int acidregsrw(Regs*, char*, u64int*, int);
List* addlist(List*, List*);
void addvarsym(Fhdr*);
List* al(int);
@@ -263,7 +263,7 @@ String* strnode(char*);
String* strnodlen(char*, int);
#define system acidsystem
char* system(void);
-int trlist(Map*, Regs*, ulong, ulong, Symbol*, int);
+int trlist(Map*, Regs*, u64int, u64int, Symbol*, int);
void unwind(void);
void userinit(void);
void varreg(void);
diff --git a/src/cmd/acid/builtin.c b/src/cmd/acid/builtin.c
index d6601d0e..1b09a4ef 100644
--- a/src/cmd/acid/builtin.c
+++ b/src/cmd/acid/builtin.c
@@ -453,7 +453,7 @@ follow(Node *r, Node *args)
{
int n, i;
Node res;
- ulong f[10];
+ u64int f[10];
List **tail, *l;
if(args == 0)
@@ -480,7 +480,7 @@ funcbound(Node *r, Node *args)
{
int n;
Node res;
- ulong bounds[2];
+ u64int bounds[2];
List *l;
if(args == 0)
@@ -523,7 +523,7 @@ filepc(Node *r, Node *args)
int i;
Node res;
char *p, c;
- ulong v;
+ u64int v;
if(args == 0)
error("filepc(filename:line): arg count");
@@ -1035,7 +1035,7 @@ static struct
static int nsregs;
static int
-straceregrw(Regs *regs, char *name, ulong *val, int isr)
+straceregrw(Regs *regs, char *name, u64int *val, int isr)
{
int i;
diff --git a/src/cmd/acid/exec.c b/src/cmd/acid/exec.c
index a8319b64..b173ef3b 100644
--- a/src/cmd/acid/exec.c
+++ b/src/cmd/acid/exec.c
@@ -354,7 +354,7 @@ indir(Map *m, ulong addr, char fmt, Node *r)
void
indirreg(Regs *regs, char *name, char fmt, Node *r)
{
- ulong val;
+ u64int val;
if(regs == 0)
error("no register set for *%s=", name);
diff --git a/src/cmd/acid/expr.c b/src/cmd/acid/expr.c
index 61d5951e..5d81ac58 100644
--- a/src/cmd/acid/expr.c
+++ b/src/cmd/acid/expr.c
@@ -168,7 +168,7 @@ oframe(Node *n, Node *res)
{
char *p;
Node *lp;
- ulong ival;
+ u64int ival;
Frtype *f;
p = n->sym->name;
@@ -1070,12 +1070,12 @@ initexpr(void)
}
int
-acidregsrw(Regs *r, char *name, ulong *u, int isr)
+acidregsrw(Regs *r, char *name, u64int *u, int isr)
{
Lsym *l;
Value *v;
Node *n;
- ulong addr;
+ u64int addr;
u32int u32;
if(!isr){
diff --git a/src/cmd/acid/list.c b/src/cmd/acid/list.c
index b75d0d70..2c26426e 100644
--- a/src/cmd/acid/list.c
+++ b/src/cmd/acid/list.c
@@ -196,7 +196,7 @@ listregisters(Map *map, Regs *regs)
{
List **tail, *l2, *l;
Regdesc *rp;
- ulong v;
+ u64int v;
l2 = 0;
tail = &l2;
@@ -255,7 +255,7 @@ listautos(Map *map, Regs *regs, Symbol *fn)
}
int
-trlist(Map *map, Regs *regs, ulong pc, ulong callerpc, Symbol *sym, int depth)
+trlist(Map *map, Regs *regs, u64int pc, u64int callerpc, Symbol *sym, int depth)
{
List *q, *l;
static List **tail;
diff --git a/src/cmd/acid/main.c b/src/cmd/acid/main.c
index 9c9c0262..b63bfe2b 100644
--- a/src/cmd/acid/main.c
+++ b/src/cmd/acid/main.c
@@ -92,6 +92,8 @@ main(int argc, char *argv[])
default:
usage();
}ARGEND
+
+ USED(pid);
fmtinstall('Z', Zfmt);
fmtinstall('L', locfmt);
@@ -195,7 +197,8 @@ attachfiles(int argc, char **argv)
pid = 0;
interactive = 0;
-
+ USED(pid);
+
if(setjmp(err))
return -1;