libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH] Reduce scope of the `eh_frame_end' local varia


From: Giuseppe Scrivano
Subject: [Libunwind-devel] [PATCH] Reduce scope of the `eh_frame_end' local variable
Date: Sat, 10 Apr 2010 16:23:08 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hello,

a trivial patch that fixes a compiler warning.


Cheers,
Giuseppe


>From cb0585292395ad646e5e5f84add189f8e9bc3003 Mon Sep 17 00:00:00 2001
From: Giuseppe Scrivano <address@hidden>
Date: Sat, 10 Apr 2010 16:20:31 +0200
Subject: [PATCH] Reduce scope of the `eh_frame_end' local variable

---
 src/ptrace/_UPT_find_proc_info.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/ptrace/_UPT_find_proc_info.c b/src/ptrace/_UPT_find_proc_info.c
index b9ef5ed..fedda63 100644
--- a/src/ptrace/_UPT_find_proc_info.c
+++ b/src/ptrace/_UPT_find_proc_info.c
@@ -168,7 +168,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui, 
unw_addr_space_t as,
                         char *path, unw_word_t segbase, unw_word_t mapoff)
 {
   Elf_W(Phdr) *phdr, *ptxt = NULL, *peh_hdr = NULL, *pdyn = NULL;
-  unw_word_t addr, eh_frame_start, eh_frame_end, fde_count, load_base;
+  unw_word_t addr, eh_frame_start, fde_count, load_base;
   unw_word_t max_load_addr = 0;
   struct dwarf_eh_frame_hdr *hdr;
   unw_proc_info_t pi;
@@ -268,6 +268,8 @@ _UPTi_find_unwind_table (struct UPT_info *ui, 
unw_addr_space_t as,
 #if 1
       abort ();
 #else
+      unw_word_t eh_frame_end;
+
       /* If there is no search table or it has an unsupported
         encoding, fall back on linear search.  */
       if (hdr->table_enc == DW_EH_PE_omit)
-- 
1.7.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]