\doxysection{Using dwarf\+\_\+child() }
\hypertarget{group__example5}{}\label{group__example5}\index{Using dwarf\_child()@{Using dwarf\_child()}}


Example accessing a DIE child.  


Example accessing a DIE child. 

If the DIE has children (for example inner scopes in a function or members of a struct) this retrieves the DIE which appears first. The child itself may have its own sibling chain.


\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ example5(\doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ in\_die)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ return\_kid\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error}}\ error\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordtype}{int}\ res\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ res\ =\ \doxymbox{\hyperlink{group__compilationunit_gab31f79265b1d39aff271b1780c6d0eb9}{dwarf\_child}}(in\_die,\&return\_kid,\ \&error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (res\ ==\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ Use\ return\_kid\ here.\ }}

\end{DoxyCode}
