/* 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
/* 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.
/* 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); \
(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 */
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.
&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)