From 744eba101484d48227ec645c0fbd3bb8bdd65256 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Thu, 16 May 2002 13:01:42 +0000 Subject: Add a an argument to db_printsym that specifies the printf function we'll use for printing the information. miod@ ok --- sys/arch/alpha/alpha/db_disasm.c | 4 ++-- sys/arch/alpha/alpha/db_trace.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/arch/alpha') 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"); /* -- cgit v1.2.3