unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move pc_low and pc_high declarations to the top of the function.
* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move pc_low and pc_high declarations to the top of the function. From-SVN: r149167
This commit is contained in:
parent
c57801d4ac
commit
2011dbb082
|
@ -1,3 +1,8 @@
|
||||||
|
2009-07-02 Ben Elliston <bje@au.ibm.com>
|
||||||
|
|
||||||
|
* unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Move
|
||||||
|
pc_low and pc_high declarations to the top of the function.
|
||||||
|
|
||||||
2009-07-01 DJ Delorie <dj@redhat.com>
|
2009-07-01 DJ Delorie <dj@redhat.com>
|
||||||
|
|
||||||
* config/mep/mep.c (mep_handle_option): Leave IVC2 control
|
* config/mep/mep.c (mep_handle_option): Leave IVC2 control
|
||||||
|
|
|
@ -135,6 +135,7 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
|
||||||
const struct unw_eh_frame_hdr *hdr;
|
const struct unw_eh_frame_hdr *hdr;
|
||||||
_Unwind_Ptr eh_frame;
|
_Unwind_Ptr eh_frame;
|
||||||
struct object ob;
|
struct object ob;
|
||||||
|
_Unwind_Ptr pc_low = 0, pc_high = 0;
|
||||||
|
|
||||||
struct ext_dl_phdr_info
|
struct ext_dl_phdr_info
|
||||||
{
|
{
|
||||||
|
@ -226,8 +227,6 @@ _Unwind_IteratePhdrCallback (struct dl_phdr_info *info, size_t size, void *ptr)
|
||||||
+ sizeof (info->dlpi_phnum))
|
+ sizeof (info->dlpi_phnum))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
_Unwind_Ptr pc_low = 0, pc_high = 0;
|
|
||||||
|
|
||||||
/* See if PC falls into one of the loaded segments. Find the eh_frame
|
/* See if PC falls into one of the loaded segments. Find the eh_frame
|
||||||
segment at the same time. */
|
segment at the same time. */
|
||||||
for (n = info->dlpi_phnum; --n >= 0; phdr++)
|
for (n = info->dlpi_phnum; --n >= 0; phdr++)
|
||||||
|
|
Loading…
Reference in New Issue