\doxysection{Example walking CUs(e) }
\hypertarget{group__examplecuhdre}{}\label{group__examplecuhdre}\index{Example walking CUs(e)@{Example walking CUs(e)}}


Example examining CUs looking for specific items(e).  


Example examining CUs looking for specific items(e). 

Loops through as many CUs as needed, stops and returns once a CU provides the desired data.

Assumes certain functions you write to remember the aspect of CUs that matter to you so once found in a cu my\+\_\+needed\+\_\+data\+\_\+exists() or some other function of yours can identify the correct record.

Depending on your goals in examining the DIE tree it may be helpful to maintain a DIE stack of active DIEs, pushing and popping as you make your way throught the DIE levels.

We assume that on a serious error we will give up (for simplicity here).

We assume the caller to examplecuhdre() will know what to retrieve (when we return DW\+\_\+\+DLV\+\_\+\+OK from examplecuhdree() and that myrecords points to a record with all the data needed by my\+\_\+needed\+\_\+data\+\_\+exists() and recorded by myrecord\+\_\+data\+\_\+for\+\_\+die().


\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{}
\DoxyCodeLine{\textcolor{keyword}{struct\ }myrecords\_struct\ <em>myrecords;}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ myrecord\_data\_for\_die(\textcolor{keyword}{struct}\ myrecords\_struct\ *myrecords\_data,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ d)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ /</em>\ \textcolor{keywordflow}{do}\ somthing\ }

\end{DoxyCode}
