Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* sysdeps/generic/unwind-dw2.c (extract_cie_info): Add a cast.
	* elf/dl-error.c (_dl_signal_error): Use .__jmpbuf in __longjmp call.
  • Loading branch information
Roland McGrath committed Dec 21, 2005
1 parent 934b22a commit e8ebf3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,5 +1,9 @@
2005-12-21 Roland McGrath <roland@redhat.com>

* sysdeps/generic/unwind-dw2.c (extract_cie_info): Add a cast.

* elf/dl-error.c (_dl_signal_error): Use .__jmpbuf in __longjmp call.

* csu/dso_handle.c (__dso_handle): Add const to pointer type too.

2005-12-21 Ulrich Drepper <drepper@redhat.com>
Expand Down
2 changes: 1 addition & 1 deletion elf/dl-error.c
Expand Up @@ -113,7 +113,7 @@ _dl_signal_error (int errcode, const char *objname, const char *occation,
lcatch->malloced = false;
}
/* We do not restore the signal mask because none was saved. */
__longjmp (lcatch->env, errcode ?: -1);
__longjmp (lcatch->env[0].__jmpbuf, errcode ?: -1);
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions sysdeps/generic/unwind-dw2.c
@@ -1,6 +1,6 @@
/* DWARF2 exception handling and frame unwind runtime interface routines.
Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
Free Software Foundation, Inc.
Copyright (C) 1997,1998,1999,2000,2001,2002,2003,2005
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Expand Down Expand Up @@ -256,7 +256,7 @@ extract_cie_info (struct dwarf_cie *cie, struct _Unwind_Context *context,
_Unwind_FrameState *fs)
{
const unsigned char *aug = cie->augmentation;
const unsigned char *p = aug + strlen (aug) + 1;
const unsigned char *p = aug + strlen ((const char *) aug) + 1;
const unsigned char *ret = NULL;
_Unwind_Word utmp;

Expand Down

0 comments on commit e8ebf3f

Please sign in to comment.