]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Tiny build nits.
authorRoland McGrath <roland@redhat.com>
Thu, 22 Jan 2009 21:17:45 +0000 (13:17 -0800)
committerRoland McGrath <roland@redhat.com>
Thu, 22 Jan 2009 21:17:45 +0000 (13:17 -0800)
src/ChangeLog
src/Makefile.am
src/readelf.c

index fcf440be681b74e6c5417b41139d94be8b0a22b9..0f9da75433f893d319c0a823ea56c54a08f9cd05 100644 (file)
@@ -1,5 +1,10 @@
 2009-01-22  Roland McGrath  <roland@redhat.com>
 
+       * readelf.c (print_debug_frame_section): Initialize IS_SIGNED to false
+       and reset it only for the 'true' cases.
+
+       * Makefile.am (addr2line_no_Wformat): New variable.
+
        * readelf.c (print_debug_frame_section): Use t instead of j formats
        for ptrdiff_t OFFSET.
 
index f72bb4589049a8ac80242fa3e228364bd82700fa..091642fe047c57630ae83beaf7b1e04ca1b1158f 100644 (file)
@@ -1,6 +1,6 @@
 ## Process this file with automake to create Makefile.in
 ##
-## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2007 Red Hat, Inc.
+## Copyright (C) 1996-2002, 2003, 2004, 2005, 2006, 2007, 2009 Red Hat, Inc.
 ## This file is part of Red Hat elfutils.
 ##
 ## Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -108,6 +108,7 @@ libeu = ../lib/libeu.a
 nm_no_Wformat = yes
 size_no_Wformat = yes
 strings_no_Wformat = yes
+addr2line_no_Wformat = yes
 # XXX While the file is not finished, don't warn about this
 ldgeneric_no_Wunused = yes
 
index b42c393a7f0884ecc8b3bc8b3e210c2310c2e16b..fc2abfc3dbb652dc7b32fe48295a67bd5e705e72 100644 (file)
@@ -4701,13 +4701,12 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
                      unsigned int encoding = *readp++;
                      uint64_t val = 0;
                      int64_t sval = 0;
-                     bool is_signed;
+                     bool is_signed = false;
 
                      switch (encoding & 0xf)
                        {
                        case DW_EH_PE_uleb128:
                          get_uleb128 (val, readp);
-                         is_signed = false;
                          break;
                        case DW_EH_PE_sleb128:
                          get_sleb128 (sval, readp);
@@ -4715,15 +4714,12 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
                          break;
                        case DW_EH_PE_udata2:
                          val = read_2ubyte_unaligned_inc (dbg, readp);
-                         is_signed = false;
                          break;
                        case DW_EH_PE_udata4:
                          val = read_4ubyte_unaligned_inc (dbg, readp);
-                         is_signed = false;
                          break;
                        case DW_EH_PE_udata8:
                          val = read_8ubyte_unaligned_inc (dbg, readp);
-                         is_signed = false;
                          break;
                        case DW_EH_PE_sdata2:
                          val = read_2sbyte_unaligned_inc (dbg, readp);