Merge commit 'origin/roland/fixes-for-c++'

This commit is contained in:
Ulrich Drepper
2009-01-10 18:12:44 -08:00
3 changed files with 11 additions and 7 deletions
+5 -1
View File
@@ -6,7 +6,11 @@
* Makefile.am (libdw.so): Don't depend on $(zip_LIBS), just link it in.
2009-01-06 Roland McGrath <roland@redhat.com>
2008-01-06 Roland McGrath <roland@redhat.com>
* libdwP.h (struct Dwarf_Abbrev): Change type of 'has_children' to bool.
Reorder members.
* dwarf_haschildren.c: Return -1 for error case, not 0.
* Makefile.am (libdw.so): Link in $(zip_LIBS).
+2 -2
View File
@@ -1,5 +1,5 @@
/* Return string associated with given attribute.
Copyright (C) 2003, 2005 Red Hat, Inc.
Copyright (C) 2003, 2005, 2008 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2003.
@@ -77,7 +77,7 @@ dwarf_haschildren (die)
if (unlikely (die->abbrev == DWARF_END_ABBREV))
{
__libdw_seterrno (DWARF_E_INVALID_DWARF);
return 0;
return -1;
}
return die->abbrev->has_children;
+4 -4
View File
@@ -194,12 +194,12 @@ struct Dwarf
/* Abbreviation representation. */
struct Dwarf_Abbrev
{
Dwarf_Off offset;
unsigned char *attrp;
unsigned int attrcnt;
unsigned int code;
unsigned int tag;
int has_children;
unsigned int attrcnt;
unsigned char *attrp;
Dwarf_Off offset;
bool has_children;
};
#include "dwarf_abbrev_hash.h"