diff options
-rw-r--r-- | sys/arch/alpha/alpha/db_disasm.c | 4 | ||||
-rw-r--r-- | sys/arch/alpha/alpha/db_trace.c | 4 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/db_disasm.c | 10 | ||||
-rw-r--r-- | sys/arch/hppa/hppa/db_interface.c | 6 | ||||
-rw-r--r-- | sys/arch/i386/i386/db_disasm.c | 13 | ||||
-rw-r--r-- | sys/arch/i386/i386/db_trace.c | 6 | ||||
-rw-r--r-- | sys/arch/mvme88k/ddb/db_disasm.c | 4 | ||||
-rw-r--r-- | sys/arch/mvme88k/ddb/db_trace.c | 6 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/db_disasm.c | 8 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/db_trace.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/db_disasm.c | 10 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/db_interface.c | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/db_trace.c | 8 | ||||
-rw-r--r-- | sys/ddb/db_break.c | 4 | ||||
-rw-r--r-- | sys/ddb/db_examine.c | 8 | ||||
-rw-r--r-- | sys/ddb/db_sym.c | 15 | ||||
-rw-r--r-- | sys/ddb/db_sym.h | 2 | ||||
-rw-r--r-- | sys/ddb/db_write_cmd.c | 4 |
18 files changed, 61 insertions, 59 deletions
diff --git a/sys/arch/alpha/alpha/db_disasm.c b/sys/arch/alpha/alpha/db_disasm.c index 21abd8d3639..5e82c406dc5 100644 --- a/sys/arch/alpha/alpha/db_disasm.c +++ b/sys/arch/alpha/alpha/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.15 2002/03/14 01:26:26 millert Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.16 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_disasm.c,v 1.8 2000/05/25 19:57:30 jhawk Exp $ */ /* @@ -1077,7 +1077,7 @@ loadstore_address: register_name(i.branch_format.ra)); branch_displacement: db_printsym(iadr + sizeof(alpha_instruction) + - (signed_immediate << 2), DB_STGY_PROC); + (signed_immediate << 2), DB_STGY_PROC, db_printf); break; default: /* diff --git a/sys/arch/alpha/alpha/db_trace.c b/sys/arch/alpha/alpha/db_trace.c index b0ecd7a2d9c..791cbb96d68 100644 --- a/sys/arch/alpha/alpha/db_trace.c +++ b/sys/arch/alpha/alpha/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.9 2002/03/14 01:26:26 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.10 2002/05/16 13:01:41 art Exp $ */ /* * Copyright (c) 1997 Niklas Hallqvist. All rights reserverd. @@ -293,7 +293,7 @@ trapframe: #else db_printf(") at "); #endif - db_printsym(pc, DB_STGY_PROC); + db_printsym(pc, DB_STGY_PROC, db_printf); db_printf("\n"); /* 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"); } } diff --git a/sys/arch/i386/i386/db_disasm.c b/sys/arch/i386/i386/db_disasm.c index 1adc5cb1f3f..f6182ebbc91 100644 --- a/sys/arch/i386/i386/db_disasm.c +++ b/sys/arch/i386/i386/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.7 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.8 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_disasm.c,v 1.11 1996/05/03 19:41:58 christos Exp $ */ /* @@ -959,7 +959,7 @@ db_print_address(seg, size, addrp) if (seg) db_printf("%s:", seg); - db_printsym((db_addr_t)addrp->disp, DB_STGY_ANY); + db_printsym((db_addr_t)addrp->disp, DB_STGY_ANY, db_printf); if (addrp->base != 0 || addrp->index != 0) { db_printf("("); if (addrp->base) @@ -1301,15 +1301,18 @@ db_disasm(loc, altfmt) if (seg) db_printf("%s:%#r",seg, displ); else - db_printsym((db_addr_t)displ, DB_STGY_ANY); + db_printsym((db_addr_t)displ, DB_STGY_ANY, + db_printf); break; case Db: get_value_inc(displ, loc, 1, TRUE); - db_printsym((db_addr_t)(displ + loc), DB_STGY_XTRN); + db_printsym((db_addr_t)(displ + loc), DB_STGY_XTRN, + db_printf); break; case Dl: get_value_inc(displ, loc, 4, TRUE); - db_printsym((db_addr_t)(displ + loc), DB_STGY_XTRN); + db_printsym((db_addr_t)(displ + loc), DB_STGY_XTRN, + db_printf); break; case o1: db_printf("$1"); diff --git a/sys/arch/i386/i386/db_trace.c b/sys/arch/i386/i386/db_trace.c index 7113b111aa1..5c1c4ce9253 100644 --- a/sys/arch/i386/i386/db_trace.c +++ b/sys/arch/i386/i386/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.5 2002/03/14 01:26:32 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.6 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_trace.c,v 1.18 1996/05/03 19:42:01 christos Exp $ */ /* @@ -294,7 +294,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif) db_printf(","); } db_printf(") at "); - db_printsym(callpc, DB_STGY_PROC); + db_printsym(callpc, DB_STGY_PROC, db_printf); db_printf("\n"); if (lastframe == 0 && offset == 0 && !have_addr) { @@ -334,7 +334,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif) } if (count && is_trap != NONE) { - db_printsym(callpc, DB_STGY_XTRN); + db_printsym(callpc, DB_STGY_XTRN, db_printf); db_printf(":\n"); } } diff --git a/sys/arch/mvme88k/ddb/db_disasm.c b/sys/arch/mvme88k/ddb/db_disasm.c index 0fb1c0379fd..047121b7497 100644 --- a/sys/arch/mvme88k/ddb/db_disasm.c +++ b/sys/arch/mvme88k/ddb/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.10 2002/03/14 01:26:38 millert Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.11 2002/05/16 13:01:41 art Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -293,7 +293,7 @@ symofset(int disp, int bit, int iadr) } else { addr = iadr + (disp << 2); } - db_printsym(addr,DB_STGY_PROC); + db_printsym(addr,DB_STGY_PROC, db_printf); return; } diff --git a/sys/arch/mvme88k/ddb/db_trace.c b/sys/arch/mvme88k/ddb/db_trace.c index 0a9d0ea83ad..ccd3c69dba7 100644 --- a/sys/arch/mvme88k/ddb/db_trace.c +++ b/sys/arch/mvme88k/ddb/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.14 2002/03/14 03:15:57 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.15 2002/05/16 13:01:41 art Exp $ */ /* * Mach Operating System * Copyright (c) 1993-1991 Carnegie Mellon University @@ -832,7 +832,7 @@ db_stack_trace_cmd2(db_regs_t *regs) db_printf("(0) "); /*depth of trace */ if (trace_flags & TRACE_SHOWADDRESS_FLAG) db_printf("%08x ", where); - db_printsym(where, DB_STGY_PROC); + db_printsym(where, DB_STGY_PROC, db_printf); clear_global_saved_regs(); /* see if this routine had a stack frame */ @@ -884,7 +884,7 @@ db_stack_trace_cmd2(db_regs_t *regs) if (trace_flags & TRACE_SHOWADDRESS_FLAG) db_printf("%08x ", where); - db_printsym(where, DB_STGY_PROC); + db_printsym(where, DB_STGY_PROC, db_printf); where = stack_decode(where, &stack); print_args(); if (trace_flags & TRACE_SHOWFRAME_FLAG) diff --git a/sys/arch/sparc/sparc/db_disasm.c b/sys/arch/sparc/sparc/db_disasm.c index c370aa41a28..f64428c3df6 100644 --- a/sys/arch/sparc/sparc/db_disasm.c +++ b/sys/arch/sparc/sparc/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.5 2002/03/14 03:16:00 millert Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.6 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_disasm.c,v 1.9 1996/03/31 23:45:07 pk Exp $ */ /* @@ -908,17 +908,17 @@ db_disasm(loc, altfmt) case 'm': db_printsym( (db_addr_t)(loc + (4 * (insn & 0x3fffff))), - DB_STGY_ANY); + DB_STGY_ANY, db_printf); break; case 'u': db_printsym( (db_addr_t)(loc + (4 * (insn & 0x7ffff))), - DB_STGY_ANY); + DB_STGY_ANY, db_printf); break; case 'n': db_printsym( (db_addr_t)(loc + (4 * (insn & 0x3fffffff))), - DB_STGY_PROC); + DB_STGY_PROC, db_printf); break; case 's': db_printf("%%asi"); diff --git a/sys/arch/sparc/sparc/db_trace.c b/sys/arch/sparc/sparc/db_trace.c index ceb1411bc09..1d8831d86dd 100644 --- a/sys/arch/sparc/sparc/db_trace.c +++ b/sys/arch/sparc/sparc/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.4 1999/07/09 21:30:02 art Exp $ */ +/* $OpenBSD: db_trace.c,v 1.5 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_trace.c,v 1.9 1997/07/29 09:42:00 fair Exp $ */ /* @@ -93,7 +93,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif) for (i=0; i < 5; i++) db_printf("0x%x, ", frame->fr_arg[i]); db_printf("0x%x) at ", frame->fr_arg[i]); - db_printsym(pc, DB_STGY_PROC); + db_printsym(pc, DB_STGY_PROC, db_printf); db_printf("\n"); } diff --git a/sys/arch/sparc64/sparc64/db_disasm.c b/sys/arch/sparc64/sparc64/db_disasm.c index 36efa77f892..49332673cfb 100644 --- a/sys/arch/sparc64/sparc64/db_disasm.c +++ b/sys/arch/sparc64/sparc64/db_disasm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_disasm.c,v 1.3 2002/03/14 03:16:01 millert Exp $ */ +/* $OpenBSD: db_disasm.c,v 1.4 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_disasm.c,v 1.9 2000/08/16 11:29:42 pk Exp $ */ /* @@ -1006,19 +1006,19 @@ db_disasm(loc, altfmt) val = (((insn>>20)&0x3)<<13)|(insn & 0x1fff); val = SIGNEX(val, 16); db_printsym((db_addr_t)(loc + (4 * val)), - DB_STGY_ANY); + DB_STGY_ANY, db_printf); break; case 'm': db_printsym((db_addr_t)(loc + (4 * SIGNEX(insn, 22))), - DB_STGY_ANY); + DB_STGY_ANY, db_printf); break; case 'u': db_printsym((db_addr_t)(loc + (4 * SIGNEX(insn, 19))), - DB_STGY_ANY); + DB_STGY_ANY, db_printf); break; case 'n': db_printsym((db_addr_t)(loc + (4 * SIGNEX(insn, 30))), - DB_STGY_PROC); + DB_STGY_PROC, db_printf); break; case 's': db_printf("%%asi"); diff --git a/sys/arch/sparc64/sparc64/db_interface.c b/sys/arch/sparc64/sparc64/db_interface.c index 9dc8da788a7..f46aec8dab9 100644 --- a/sys/arch/sparc64/sparc64/db_interface.c +++ b/sys/arch/sparc64/sparc64/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.7 2002/03/14 04:16:55 jason Exp $ */ +/* $OpenBSD: db_interface.c,v 1.8 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_interface.c,v 1.61 2001/07/31 06:55:47 eeh Exp $ */ /* @@ -841,7 +841,7 @@ db_print_trace_entry(te, i) (int)te->tt, (unsigned long long)te->tstate, (unsigned long long)te->tfault, (unsigned long long)te->tsp, (unsigned long long)te->tpc); - db_printsym((u_long)te->tpc, DB_STGY_PROC); + db_printsym((u_long)te->tpc, DB_STGY_PROC, db_printf); db_printf(": "); if ((te->tpc && !(te->tpc&0x3)) && curproc && diff --git a/sys/arch/sparc64/sparc64/db_trace.c b/sys/arch/sparc64/sparc64/db_trace.c index fa08ff82701..bfb21ffd743 100644 --- a/sys/arch/sparc64/sparc64/db_trace.c +++ b/sys/arch/sparc64/sparc64/db_trace.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_trace.c,v 1.4 2002/03/14 03:16:01 millert Exp $ */ +/* $OpenBSD: db_trace.c,v 1.5 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_trace.c,v 1.23 2001/07/10 06:06:16 eeh Exp $ */ /* @@ -159,7 +159,7 @@ db_stack_trace_cmd(addr, have_addr, count, modif) (*pr)("%x, ", (u_int)KLOAD(f32->fr_arg[i])); (*pr)("%x) at ", (u_int)KLOAD(f32->fr_arg[i])); } - db_printsym(pc, DB_STGY_PROC); + db_printsym(pc, DB_STGY_PROC, pr); (*pr)("\n"); } } @@ -220,7 +220,7 @@ u_int64_t frame; (unsigned long long)f->fr_fp, (unsigned long long)f->fr_pc); /* Sometimes this don't work. Dunno why. */ - db_printsym(f->fr_pc, DB_STGY_PROC); + db_printsym(f->fr_pc, DB_STGY_PROC, db_printf); db_printf("\n"); } else { struct frame64 fr; @@ -254,7 +254,7 @@ u_int64_t frame; db_printf("%8x %8x %8x %8x %8x %8x %8x=sp %8x=pc:", f->fr_arg[0], f->fr_arg[1], f->fr_arg[2], f->fr_arg[3], f->fr_arg[4], f->fr_arg[5], f->fr_fp, f->fr_pc); - db_printsym(f->fr_pc, DB_STGY_PROC); + db_printsym(f->fr_pc, DB_STGY_PROC, db_printf); db_printf("\n"); } else { struct frame32 fr; diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c index 2e0c91da53b..144b3eddbaa 100644 --- a/sys/ddb/db_break.c +++ b/sys/ddb/db_break.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_break.c,v 1.11 2001/11/28 16:13:29 art Exp $ */ +/* $OpenBSD: db_break.c,v 1.12 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_break.c,v 1.7 1996/03/30 22:30:03 christos Exp $ */ /* @@ -268,7 +268,7 @@ db_list_breakpoints() db_printf("%s%p %5d ", db_map_current(bkpt->map) ? "*" : " ", bkpt->map, bkpt->init_count); - db_printsym(bkpt->address, DB_STGY_PROC); + db_printsym(bkpt->address, DB_STGY_PROC, db_printf); db_printf("\n"); } } diff --git a/sys/ddb/db_examine.c b/sys/ddb/db_examine.c index 1c9f046f6b5..07cfc896500 100644 --- a/sys/ddb/db_examine.c +++ b/sys/ddb/db_examine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_examine.c,v 1.9 2001/11/06 19:53:18 miod Exp $ */ +/* $OpenBSD: db_examine.c,v 1.10 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_examine.c,v 1.11 1996/03/30 22:30:07 christos Exp $ */ /* @@ -91,7 +91,7 @@ db_examine(addr, fmt, count) while ((c = *fp++) != 0) { if (db_print_position() == 0) { /* Always print the address. */ - db_printsym(addr, DB_STGY_ANY); + db_printsym(addr, DB_STGY_ANY, db_printf); db_printf(":\t"); db_prev = addr; } @@ -201,7 +201,7 @@ db_print_cmd(addr, have_addr, count, modif) switch (db_print_format) { case 'a': - db_printsym((db_addr_t)addr, DB_STGY_ANY); + db_printsym((db_addr_t)addr, DB_STGY_ANY, db_printf); break; case 'r': db_printf("%*r", sizeof(db_expr_t) * 2 * 6 / 5, addr); @@ -236,7 +236,7 @@ void db_print_loc_and_inst(loc) db_addr_t loc; { - db_printsym(loc, DB_STGY_PROC); + db_printsym(loc, DB_STGY_PROC, db_printf); db_printf(":\t"); (void) db_disasm(loc, FALSE); } diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 18f4bf32dca..9f659517d57 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sym.c,v 1.27 2002/05/14 16:13:48 art Exp $ */ +/* $OpenBSD: db_sym.c,v 1.28 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */ /* @@ -538,9 +538,8 @@ unsigned int db_maxoff = 0x10000000; void -db_printsym(off, strategy) - db_expr_t off; - db_strategy_t strategy; +db_printsym(db_expr_t off, db_strategy_t strategy, + int (*pr)(const char *, ...)) { db_expr_t d; char *filename; @@ -554,20 +553,20 @@ db_printsym(off, strategy) cursym = db_search_symbol(off, strategy, &d); db_symbol_values(cursym, &name, &value); if (name && (d < db_maxoff) && value) { - db_printf("%s", name); + (*pr)("%s", name); if (d) { - db_printf("+%s", db_format(buf, sizeof(buf), + (*pr)("+%s", db_format(buf, sizeof(buf), d, DB_FORMAT_R, 1, 0)); } if (strategy == DB_STGY_PROC) { if (db_line_at_pc(cursym, &filename, &linenum, off)) - db_printf(" [%s:%d]", filename, linenum); + (*pr)(" [%s:%d]", filename, linenum); } return; } } - db_printf("%s", db_format(buf, sizeof(buf), off, DB_FORMAT_N, 1, 0)); + (*pr)("%s", db_format(buf, sizeof(buf), off, DB_FORMAT_N, 1, 0)); return; } diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index 5470a9ec604..f99945353fe 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -139,7 +139,7 @@ void db_symbol_values(db_sym_t, char **, db_expr_t *); db_symbol_values(db_search_symbol(val,DB_STGY_XTRN,offp),namep,0) /* ditto, but no locals */ -void db_printsym(db_expr_t, db_strategy_t); +void db_printsym(db_expr_t, db_strategy_t, int (*)(const char *, ...)); /* print closest symbol to a value */ boolean_t db_line_at_pc(db_sym_t, char **, int *, db_expr_t); diff --git a/sys/ddb/db_write_cmd.c b/sys/ddb/db_write_cmd.c index 171cee6525f..5c592e5d64f 100644 --- a/sys/ddb/db_write_cmd.c +++ b/sys/ddb/db_write_cmd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_write_cmd.c,v 1.6 2001/11/06 19:53:18 miod Exp $ */ +/* $OpenBSD: db_write_cmd.c,v 1.7 2002/05/16 13:01:41 art Exp $ */ /* $NetBSD: db_write_cmd.c,v 1.6 1996/02/05 01:57:25 christos Exp $ */ /* @@ -84,7 +84,7 @@ db_write_cmd(address, have_addr, count, modif) while (db_expression(&new_value)) { old_value = db_get_value(addr, size, FALSE); - db_printsym(addr, DB_STGY_ANY); + db_printsym(addr, DB_STGY_ANY, db_printf); db_printf("\t\t%#8n\t=\t%#8n\n", old_value, new_value); db_put_value(addr, size, new_value); addr += size; |