195f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm/* libunwind - a platform-independent unwind library
295f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm   Copyright (C) 2003 Hewlett-Packard Co
395f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm	Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
495f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
595f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmThis file is part of libunwind.
695f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
795f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmPermission is hereby granted, free of charge, to any person obtaining
895f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidma copy of this software and associated documentation files (the
995f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm"Software"), to deal in the Software without restriction, including
1095f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmwithout limitation the rights to use, copy, modify, merge, publish,
1195f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmdistribute, sublicense, and/or sell copies of the Software, and to
1295f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmpermit persons to whom the Software is furnished to do so, subject to
1395f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmthe following conditions:
1495f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
1595f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmThe above copyright notice and this permission notice shall be
1695f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmincluded in all copies or substantial portions of the Software.
1795f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
1895f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1995f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
2095f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
2195f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
2295f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
2395f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
2495f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
2595f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
2695f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm#include "_UPT_internal.h"
2795f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm
2895f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidmvoid
2995f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm_UPT_put_unwind_info (unw_addr_space_t as, unw_proc_info_t *pi, void *arg)
3095f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm{
3195f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm  if (!pi->unwind_info)
3295f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm    return;
3395f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm  free (pi->unwind_info);
3495f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm  pi->unwind_info = NULL;
3595f6295191fd1c2cc0457418c0085ffcd510269fhp.com!davidm}
36