proc_ia32dep.c (31779036) | proc_ia32dep.c (9c3024a3) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 10 unchanged lines hidden (view full) --- 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26/* | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 10 unchanged lines hidden (view full) --- 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26/* |
27 * Copyright (c) 2018, Joyent, Inc. | |
28 * Copyright 2019 Doma Gergő Mihály <doma.gergo.mihaly@gmail.com> | 27 * Copyright 2019 Doma Gergő Mihály <doma.gergo.mihaly@gmail.com> |
28 * Copyright 2018 Joyent, Inc. |
|
29 */ 30 31/* 32 * User Process Target Intel 32-bit component 33 * 34 * This file provides the ISA-dependent portion of the user process target. 35 * For more details on the implementation refer to mdb_proc.c. 36 */ 37 38#include <mdb/mdb_proc.h> 39#include <mdb/mdb_kreg.h> 40#include <mdb/mdb_err.h> | 29 */ 30 31/* 32 * User Process Target Intel 32-bit component 33 * 34 * This file provides the ISA-dependent portion of the user process target. 35 * For more details on the implementation refer to mdb_proc.c. 36 */ 37 38#include <mdb/mdb_proc.h> 39#include <mdb/mdb_kreg.h> 40#include <mdb/mdb_err.h> |
41#include <mdb/mdb_isautil.h> |
|
41#include <mdb/mdb_ia32util.h> 42#include <mdb/mdb.h> 43 44#include <sys/ucontext.h> 45#include <sys/frame.h> 46#include <libproc.h> 47#include <sys/fp.h> 48#include <ieeefp.h> --- 45 unchanged lines hidden (view full) --- 94 * artifically modified memory, it will no longer be correct. 95 */ 96static uint8_t 97pt_read_instr(mdb_tgt_t *t) 98{ 99 const lwpstatus_t *psp = &Pstatus(t->t_pshandle)->pr_lwp; 100 uint8_t ret = 0; 101 | 42#include <mdb/mdb_ia32util.h> 43#include <mdb/mdb.h> 44 45#include <sys/ucontext.h> 46#include <sys/frame.h> 47#include <libproc.h> 48#include <sys/fp.h> 49#include <ieeefp.h> --- 45 unchanged lines hidden (view full) --- 95 * artifically modified memory, it will no longer be correct. 96 */ 97static uint8_t 98pt_read_instr(mdb_tgt_t *t) 99{ 100 const lwpstatus_t *psp = &Pstatus(t->t_pshandle)->pr_lwp; 101 uint8_t ret = 0; 102 |
102 (void) mdb_tgt_vread(t, &ret, sizeof (ret), psp->pr_reg[EIP]); | 103 (void) mdb_tgt_aread(t, MDB_TGT_AS_VIRT_I, &ret, sizeof (ret), 104 psp->pr_reg[EIP]); |
103 104 return (ret); 105} 106 107/*ARGSUSED*/ 108int 109pt_regs(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) 110{ --- 549 unchanged lines hidden --- | 105 106 return (ret); 107} 108 109/*ARGSUSED*/ 110int 111pt_regs(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) 112{ --- 549 unchanged lines hidden --- |