From cc012865d714868333a1bb76a83f31d808866a49 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 6 Jan 2005 21:08:45 +0000 Subject: A really working SET_PC_REGS(); ok mickey@ --- sys/arch/hppa/include/db_machdep.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/arch/hppa/include/db_machdep.h b/sys/arch/hppa/include/db_machdep.h index eedd5e3395f..6eb9131958b 100644 --- a/sys/arch/hppa/include/db_machdep.h +++ b/sys/arch/hppa/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.13 2005/01/06 20:34:07 mickey Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.14 2005/01/06 21:08:44 miod Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -44,6 +44,11 @@ extern db_regs_t ddb_regs; #define DDB_REGS (&ddb_regs) #define PC_REGS(regs) ((db_addr_t)(regs)->tf_iioq_head) +#define SET_PC_REGS(regs, value) \ +do { \ + (regs)->tf_iioq_tail = 4 + \ + ((regs)->tf_iioq_head = (value)); \ +} while (0) /* Breakpoint related definitions */ #define BKPT_INST 0x00010000 /* break 0,8 */ -- cgit v1.2.3