summaryrefslogtreecommitdiff
path: root/sys/src/cmd/acid/list.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-02-09 22:43:09 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-02-09 22:43:09 +0100
commit16acf605e21e55e8f0520cf54016bfec5291802e (patch)
treeb63615e24216e3d054c052cf330372e1a45b4a23 /sys/src/cmd/acid/list.c
parent9bdf602ebbdcfcb4baaeb17499a1f1f6865ddc61 (diff)
acid: make 'a' and 'A' format to have the same size as mach->szaddr
to make it easier to write portable acid code, we introduce 'A' format in the same meaning as in db(1): A Print the value of dot in hexadecimal. Dot is unaffected. both 'a' (symbolic) and 'A' will both have 64 or 32 bit size depending on the mach, so pointer array indexing works the same.
Diffstat (limited to 'sys/src/cmd/acid/list.c')
-rw-r--r--sys/src/cmd/acid/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/acid/list.c b/sys/src/cmd/acid/list.c
index 5ad7c54e4..be0c3362b 100644
--- a/sys/src/cmd/acid/list.c
+++ b/sys/src/cmd/acid/list.c
@@ -185,7 +185,7 @@ listvar(char *s, vlong v)
l->string = strnode(s);
l->next = al(TINT);
l = l->next;
- l->fmt = 'X';
+ l->fmt = 'A';
l->ival = v;
return tl;
@@ -260,7 +260,7 @@ trlist(Map *map, uvlong pc, uvlong sp, Symbol *sym)
l = al(TINT); /* Function address */
q->l = l;
l->ival = sym->value;
- l->fmt = 'X';
+ l->fmt = 'A';
l->next = al(TINT); /* called from address */
l = l->next;