summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-05-16 13:01:42 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-05-16 13:01:42 +0000
commit744eba101484d48227ec645c0fbd3bb8bdd65256 (patch)
treed15075c3be1601e0e94b70e63d1065e600d37521 /sys/arch/hppa
parent296587d70142f38baff6e71b1adab7403c086dc7 (diff)
Add a an argument to db_printsym that specifies the printf function
we'll use for printing the information. miod@ ok
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/db_disasm.c10
-rw-r--r--sys/arch/hppa/hppa/db_interface.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/hppa/hppa/db_disasm.c b/sys/arch/hppa/hppa/db_disasm.c
index b9eb7496568..fc6aae613df 100644
--- a/sys/arch/hppa/hppa/db_disasm.c
+++ b/sys/arch/hppa/hppa/db_disasm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_disasm.c,v 1.11 2002/03/14 01:26:31 millert Exp $ */
+/* $OpenBSD: db_disasm.c,v 1.12 2002/05/16 13:01:41 art Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -1712,7 +1712,7 @@ blDasm(i, ofs, w)
db_printf(",n");
db_printf("\t");
- db_printsym((db_addr_t)tgtofs, DB_STGY_ANY);
+ db_printsym((db_addr_t)tgtofs, DB_STGY_ANY, db_printf);
if (link || Match("gate"))
db_printf(",%%r%d",link);
@@ -1782,7 +1782,7 @@ cbDasm(i, ofs, w)
else
db_printf(subDCond(Cond(w) << 1));
db_printf("%s\t%%r%d,%%r%d,", Nu(w)?",n":"", Rsa(w), Rsb(w));
- db_printsym((db_addr_t)tgtofs, DB_STGY_ANY);
+ db_printsym((db_addr_t)tgtofs, DB_STGY_ANY, db_printf);
return (1);
}
@@ -1802,7 +1802,7 @@ cbiDasm(i, ofs, w)
else
db_printf(subDCond(Cond(w) << 1));
db_printf("%s\t%d,%%r%d,", Nu(w)? ",n":"", Ima5(w), Rsb(w));
- db_printsym((db_addr_t)tgtofs, DB_STGY_ANY);
+ db_printsym((db_addr_t)tgtofs, DB_STGY_ANY, db_printf);
return (1);
}
@@ -1822,7 +1822,7 @@ bbDasm(i, ofs, w)
db_printf("%s\t%%r%d,", p, Rta(w));
else
db_printf("%s\t%%r%d,%d,", p, Rsa(w), Imb5(w));
- db_printsym((db_addr_t)tgtofs, DB_STGY_ANY);
+ db_printsym((db_addr_t)tgtofs, DB_STGY_ANY, db_printf);
return (1);
}
diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c
index 0f8438c3d65..6fe31475b22 100644
--- a/sys/arch/hppa/hppa/db_interface.c
+++ b/sys/arch/hppa/hppa/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.18 2002/03/14 03:15:53 millert Exp $ */
+/* $OpenBSD: db_interface.c,v 1.19 2002/05/16 13:01:41 art Exp $ */
/*
* Copyright (c) 1999-2000 Michael Shalayeff
@@ -291,7 +291,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif)
nargs? ",":"");
}
db_printf(") at ");
- db_printsym(pc, DB_STGY_PROC);
+ db_printsym(pc, DB_STGY_PROC, db_printf);
db_printf("\n");
/* TODO: print locals */
@@ -306,7 +306,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif)
}
if (count && pc) {
- db_printsym(pc, DB_STGY_XTRN);
+ db_printsym(pc, DB_STGY_XTRN, db_printf);
db_printf(":\n");
}
}