Imported Upstream version 1.2
[platform/upstream/libunwind.git] / src / ptrace / _UPT_get_dyn_info_list_addr.c
index edc998f..cc5ed04 100644 (file)
@@ -1,6 +1,6 @@
 /* libunwind - a platform-independent unwind library
    Copyright (C) 2003-2005 Hewlett-Packard Co
-       Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
+        Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
 
 This file is part of libunwind.
 
@@ -31,7 +31,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.  */
 
 static inline int
 get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
-              int *countp)
+               int *countp)
 {
   unsigned long lo, hi, off;
   struct UPT_info *ui = arg;
@@ -44,25 +44,25 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
   while (maps_next (&mi, &lo, &hi, &off))
     {
       if (off)
-       continue;
+        continue;
 
       invalidate_edi(&ui->edi);
 
       if (elf_map_image (&ui->edi.ei, path) < 0)
-       /* ignore unmappable stuff like "/SYSV00001b58 (deleted)" */
-       continue;
+        /* ignore unmappable stuff like "/SYSV00001b58 (deleted)" */
+        continue;
 
       Debug (16, "checking object %s\n", path);
 
       if (tdep_find_unwind_table (&ui->edi, as, path, lo, off, 0) > 0)
-       {
-         res = _Uia64_find_dyn_list (as, &ui->edi.di_cache, arg);
-         if (res && count++ == 0)
-           {
-             Debug (12, "dyn_info_list_addr = 0x%lx\n", (long) res);
-             *dil_addr = res;
-           }
-       }
+        {
+          res = _Uia64_find_dyn_list (as, &ui->edi.di_cache, arg);
+          if (res && count++ == 0)
+            {
+              Debug (12, "dyn_info_list_addr = 0x%lx\n", (long) res);
+              *dil_addr = res;
+            }
+        }
     }
   maps_close (&mi);
   *countp = count;
@@ -73,7 +73,7 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
 
 static inline int
 get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
-              int *countp)
+               int *countp)
 {
 # warning Implement get_list_addr(), please.
   *countp = 0;
@@ -84,7 +84,7 @@ get_list_addr (unw_addr_space_t as, unw_word_t *dil_addr, void *arg,
 
 int
 _UPT_get_dyn_info_list_addr (unw_addr_space_t as, unw_word_t *dil_addr,
-                            void *arg)
+                             void *arg)
 {
   int count, ret;