summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich Drepper <[email protected]>2006-05-22 01:30:56 +0000
committerUlrich Drepper <[email protected]>2006-05-22 01:30:56 +0000
commit4f3d2a2aff351b2c202c8d6e7854a9e3a05153f2 (patch)
treebe0e980090224fd66ce07bdda170b11ffb8a2a8b
parenta1690688cee19199afb1fb44da4546750be622cc (diff)
Add some more nonnull attributes.
-rw-r--r--libdw/ChangeLog5
-rw-r--r--libdw/libdw.h9
2 files changed, 10 insertions, 4 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index ac421ce0..d904e424 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,8 @@
+2006-05-21 Ulrich Drepper <[email protected]>
+
+ * libdw.h: Add nonnull attributes to dwarf_tag, dwarf_getattrs,
+ dwarf_haschildren.
+
2006-02-28 Roland McGrath <[email protected]>
* dwarf.h: Add missing DW_ATE_*, DW_TAG_*, DW_LANG_*, DW_CFA_*,
diff --git a/libdw/libdw.h b/libdw/libdw.h
index f3ab3ae5..351aef26 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -237,22 +237,23 @@ extern Dwarf_Die *dwarf_addrdie (Dwarf *dbg, Dwarf_Addr addr,
/* Return child of current DIE. */
extern int dwarf_child (Dwarf_Die *die, Dwarf_Die *result)
- __nonnull_attribute__ (2);
+ __nonnull_attribute__ (1, 2);
/* Return sibling of given DIE. */
extern int dwarf_siblingof (Dwarf_Die *die, Dwarf_Die *result)
__nonnull_attribute__ (2);
/* Check whether the DIE has children. */
-extern int dwarf_haschildren (Dwarf_Die *die);
+extern int dwarf_haschildren (Dwarf_Die *die) __nonnull_attribute__ (1);
/* Get attributes of the DIE. */
extern ptrdiff_t dwarf_getattrs (Dwarf_Die *die,
int (*callback) (Dwarf_Attribute *, void *),
- void *arg, ptrdiff_t offset);
+ void *arg, ptrdiff_t offset)
+ __nonnull_attribute__ (2);
/* Return tag of given DIE. */
-extern int dwarf_tag (Dwarf_Die *die);
+extern int dwarf_tag (Dwarf_Die *die) __nonnull_attribute__ (1);
/* Return specific attribute of DIE. */