16498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm/* libunwind - a platform-independent unwind library 219df6612fa2f2be0a2828e46364b57e7a81f3079hp.com!davidm Copyright (C) 2004-2005 Hewlett-Packard Co 37e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidm Contributed by David Mosberger-Tang <davidm@hpl.hp.com> 46498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 56498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmThis file is part of libunwind. 66498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 76498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmPermission is hereby granted, free of charge, to any person obtaining 86498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidma copy of this software and associated documentation files (the 96498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm"Software"), to deal in the Software without restriction, including 106498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmwithout limitation the rights to use, copy, modify, merge, publish, 116498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmdistribute, sublicense, and/or sell copies of the Software, and to 126498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmpermit persons to whom the Software is furnished to do so, subject to 136498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmthe following conditions: 146498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 156498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmThe above copyright notice and this permission notice shall be 166498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmincluded in all copies or substantial portions of the Software. 176498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 186498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 196498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 206498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 216498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 226498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 236498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 246498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 256498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 266498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#ifndef unwind_i_h 276498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#define unwind_i_h 286498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 296498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#include <stdint.h> 306498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 316498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#include <libunwind-hppa.h> 326498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 3319df6612fa2f2be0a2828e46364b57e7a81f3079hp.com!davidm#include "libunwind_i.h" 346498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 357e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidm#define hppa_lock UNW_OBJ(lock) 366498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#define hppa_local_resume UNW_OBJ(local_resume) 376498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#define hppa_local_addr_space_init UNW_OBJ(local_addr_space_init) 387e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidm#define hppa_scratch_loc UNW_OBJ(scratch_loc) 397e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidm#define setcontext UNW_ARCH_OBJ (setcontext) 406498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 416498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmextern void hppa_local_addr_space_init (void); 426498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidmextern int hppa_local_resume (unw_addr_space_t as, unw_cursor_t *cursor, 436498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm void *arg); 447e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidmextern dwarf_loc_t hppa_scratch_loc (struct cursor *c, unw_regnum_t reg); 457e0192f53ab2a85ba99bc36365ab18bdadf48677hp.com!davidmextern int setcontext (const ucontext_t *ucp); 466498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm 476498cdf4d9877f4c78f8b4429e2abf70d17a550dhp.com!davidm#endif /* unwind_i_h */ 48