4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1996, 2010, Oracle and/or its affiliates. All rights reserved.
29 #include <sys/regset.h>
30 #include <sys/frame.h>
33 #if defined(__sparcv9)
34 #define Elf_Ehdr Elf64_Ehdr
35 #define Elf_Phdr Elf64_Phdr
36 #define Elf_Shdr Elf64_Shdr
37 #define Elf_Sym Elf64_Sym
38 #define elf_getshdr elf64_getshdr
40 #define Elf_Ehdr Elf32_Ehdr
41 #define Elf_Phdr Elf32_Phdr
42 #define Elf_Shdr Elf32_Shdr
43 #define Elf_Sym Elf32_Sym
44 #define elf_getshdr elf32_getshdr
48 typedef struct objinfo
{
49 caddr_t o_lpc
; /* low PC */
50 caddr_t o_hpc
; /* high PC */
51 int o_fd
; /* file descriptor */
52 Elf
*o_elf
; /* Elf pointer */
53 Elf_Sym
*o_syms
; /* symbol table */
54 uint_t o_symcnt
; /* # of symbols */
55 const char *o_strs
; /* symbol string table */
58 struct objinfo
*o_next
;
61 #define FLG_OB_NOSYMS 0x0001 /* no symbols available for obj */
62 #define FLG_OB_FIXED 0x0002 /* fixed address object */
67 #define FLUSHWIN() __asm__("ta 3");
69 #define FLUSHWIN() asm("ta 3");
81 #endif /* WHO_DOT_H */