116df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm/* libunwind - a platform-independent unwind library
2d9e100753f5694ebb14769048373e8171f336127hp.com!davidm   Copyright (C) 2002, 2005 Hewlett-Packard Co
316df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm	Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
416df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
516df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmThis file is part of libunwind.
616df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
716df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmPermission is hereby granted, free of charge, to any person obtaining
816df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidma copy of this software and associated documentation files (the
916df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm"Software"), to deal in the Software without restriction, including
1016df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmwithout limitation the rights to use, copy, modify, merge, publish,
1116df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmdistribute, sublicense, and/or sell copies of the Software, and to
1216df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmpermit persons to whom the Software is furnished to do so, subject to
1316df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmthe following conditions:
1416df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
1516df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmThe above copyright notice and this permission notice shall be
1616df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmincluded in all copies or substantial portions of the Software.
1716df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
1816df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1916df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2016df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2116df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
2216df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2316df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2416df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
2516df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
26d9e100753f5694ebb14769048373e8171f336127hp.com!davidm#include "libunwind_i.h"
2716df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
2816df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmPROTECTED int
2916df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidmunw_set_reg (unw_cursor_t *cursor, int regnum, unw_word_t valp)
3016df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm{
3116df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm  struct cursor *c = (struct cursor *) cursor;
3216df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm
3316df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm  return tdep_access_reg (c, regnum, &valp, 1);
3416df64ba9e68ef2062657e8d3ad185258a091054hp.com!davidm}
35