]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
merge of 74ebb3c081458a7d19c744b155c767262efc47cb
authorUlrich Drepper <drepper@redhat.com>
Sun, 4 Jun 2006 18:33:56 +0000 (18:33 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 4 Jun 2006 18:33:56 +0000 (18:33 +0000)
     and cb87c403367a928f441c3dab11f1ed989884a7f7

libdw/libdw.h
libelf/libelfP.h
src/ChangeLog
src/addr2line.c

index 424c354e12dee227d873a4e9fde08b4b42f978d5..0758a38d523eb290871e2db79d00e800ac2a4d22 100644 (file)
@@ -1,7 +1,6 @@
 /* Interfaces for libdw.
    Copyright (C) 2002, 2004, 2005, 2006 Red Hat, Inc.
    This file is part of Red Hat elfutils.
-   Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by the
index ed6b5f7f303c6f0cd71c20386783156b745c7e2a..54158aeb8d4bdfaf64ffe552be243514e84e6d42 100644 (file)
@@ -1,5 +1,5 @@
 /* Internal interfaces for libelf.
-   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 Red Hat, Inc.
+   Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 1998.
 
@@ -546,9 +546,8 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len)
 
 
 /* We often have to update a flag iff a value changed.  Make this
-   convenient.  None of the parameters must have a side effect.  */
-#ifdef __GNUC__
-# define update_if_changed(var, exp, flag) \
+   convenient.  */
+#define update_if_changed(var, exp, flag) \
   do {                                                                       \
     __typeof__ (var) *_var = &(var);                                         \
     __typeof__ (exp) _exp = (exp);                                           \
@@ -558,15 +557,5 @@ extern uint32_t __libelf_crc32 (uint32_t crc, unsigned char *buf, size_t len)
        (flag) |= ELF_F_DIRTY;                                                \
       }                                                                              \
   } while (0)
-#else
-# define update_if_changed(var, exp, flag) \
-  do {                                                                       \
-    if ((var) != (exp))                                                              \
-      {                                                                              \
-       (var) = (exp);                                                        \
-       (flag) |= ELF_F_DIRTY;                                                \
-      }                                                                              \
-  } while (0)
-#endif
 
 #endif  /* libelfP.h */
index dc068b4f3d4aa076e584cd89bdfb7e0993d72f69..70ab5457a41d8c19d6df2d8c083049cf1c5fd925 100644 (file)
@@ -9,6 +9,11 @@
        combinations.
        (mark_as_needed): Fix loop.
 
+2006-05-28  Ulrich Drepper  <drepper@redhat.com>
+
+       * addr2line.c (print_dwarf_function): Use unsigned type for lineno
+       and colno.
+
 2006-05-27  Ulrich Drepper  <drepper@redhat.com>
 
        * readelf.c (handle_relocs_rela): Better notations for addon value.
index bc0ea803acb2bf1959c8bf9e9630a5c726d5c286..1729058e1aa925742ab23303452a9126800feb01 100644 (file)
@@ -258,7 +258,8 @@ print_dwarf_function (Dwfl_Module *mod, Dwarf_Addr addr)
                                               &attr_mem), &val) == 0)
                {
                  const char *file = dwarf_filesrc (files, val, NULL, NULL);
-                 int lineno = 0, colno = 0;
+                 unsigned int lineno = 0;
+                 unsigned int colno = 0;
                  if (dwarf_formudata (dwarf_attr (&scopes[i],
                                                   DW_AT_call_line,
                                                   &attr_mem), &val) == 0)