Date: Mon, 5 Jul 2004 00:16:39 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 56472 for review Message-ID: <200407050016.i650GdCj065040@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=56472 Change 56472 by marcel@marcel_sledge on 2004/07/05 00:15:56 Update to the new world order. Affected files ... .. //depot/projects/gdb/sys/amd64/include/db_machdep.h#2 edit Differences ... ==== //depot/projects/gdb/sys/amd64/include/db_machdep.h#2 (text+ko) ==== @@ -30,30 +30,23 @@ #define _MACHINE_DB_MACHDEP_H_ #include <machine/frame.h> -#include <machine/psl.h> #include <machine/trap.h> -#define amd64_saved_state trapframe - typedef vm_offset_t db_addr_t; /* address - unsigned */ typedef long db_expr_t; /* expression - signed */ -typedef struct amd64_saved_state db_regs_t; -extern db_regs_t ddb_regs; /* register state */ -#define DDB_REGS (&ddb_regs) - -#define PC_REGS(regs) ((db_addr_t)(regs)->tf_rip) +#define PC_REGS() ((db_addr_t)kdb_thrctx->pcb_rip) #define BKPT_INST 0xcc /* breakpoint instruction */ #define BKPT_SIZE (1) /* size of breakpoint inst */ #define BKPT_SET(inst) (BKPT_INST) -#define BKPT_SKIP ddb_regs.tf_rip += 1 +#define BKPT_SKIP kdb_frame->tf_rip += 1 -#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_rip -= 1; +#define FIXUP_PC_AFTER_BREAK kdb_frame->tf_rip -= 1; -#define db_clear_single_step(regs) ((regs)->tf_rflags &= ~PSL_T) -#define db_set_single_step(regs) ((regs)->tf_rflags |= PSL_T) +#define db_clear_single_step kdb_cpu_clear_singlestep +#define db_set_single_step kdb_cpu_set_singlestep #define IS_BREAKPOINT_TRAP(type, code) ((type) == T_BPTFLT) /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407050016.i650GdCj065040>