Source-Changes-HG archive

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

[src/trunk]: src/external/bsd/elftoolchain/dist/libdwarf remove more unreacha...



details:   https://anonhg.NetBSD.org/src/rev/8e0a5eaab843
branches:  trunk
changeset: 829752:8e0a5eaab843
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Feb 10 23:46:44 2018 +0000

description:
remove more unreachable code.

diffstat:

 external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r 03ce63fc2f07 -r 8e0a5eaab843 external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c
--- a/external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c   Sat Feb 10 23:39:29 2018 +0000
+++ b/external/bsd/elftoolchain/dist/libdwarf/dwarf_attrval.c   Sat Feb 10 23:46:44 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dwarf_attrval.c,v 1.9 2018/02/10 23:39:29 christos Exp $       */
+/*     $NetBSD: dwarf_attrval.c,v 1.10 2018/02/10 23:46:44 christos Exp $      */
 
 /*-
  * Copyright (c) 2007 John Birrell (jb%freebsd.org@localhost)
@@ -28,7 +28,7 @@
 
 #include "_libdwarf.h"
 
-__RCSID("$NetBSD: dwarf_attrval.c,v 1.9 2018/02/10 23:39:29 christos Exp $");
+__RCSID("$NetBSD: dwarf_attrval.c,v 1.10 2018/02/10 23:46:44 christos Exp $");
 ELFTC_VCSID("Id: dwarf_attrval.c 3159 2015-02-15 21:43:27Z emaste ");
 
 int
@@ -201,13 +201,9 @@
                *valp = at->u[0].u64;
                break;
        default:
-               if (at->at_die != die)
-                       dwarf_dealloc(dbg, at->at_die, DW_DLA_DIE);
                DWARF_SET_ERROR(dbg, err, DW_DLE_ATTR_FORM_BAD);
                return (DW_DLV_ERROR);
        }
 
-       if (at->at_die != die)
-               dwarf_dealloc(dbg, at->at_die, DW_DLA_DIE);
        return (DW_DLV_OK);
 }



Home | Main Index | Thread Index | Old Index