\doxysection{Using dwarf\+\_\+offset\+\_\+list() }
\hypertarget{group__exampleoffset__list}{}\label{group__exampleoffset__list}\index{Using dwarf\_offset\_list()@{Using dwarf\_offset\_list()}}


Example using dwarf\+\_\+offset\+\_\+list.  


Example using dwarf\+\_\+offset\+\_\+list. 

An example calling dwarf\+\_\+offset\+\_\+list


\begin{DoxyParams}{Parameters}
{\em dbg} & the \doxylink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\+\_\+\+Debug} of interest \\
\hline
{\em dieoffset} & The section offset of a \doxylink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\+\_\+\+Die} \\
\hline
{\em is\+\_\+info} & Pass in TRUE if the dieoffset is for the .debug\+\_\+info section, else pass in FALSE meaning the dieoffset is for the DWARF4 .debug\+\_\+types section. \\
\hline
{\em error} & The usual error detail return. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns DW\+\_\+\+DLV\+\_\+\+OK etc 
\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ exampleoffset\_list(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg,\ \doxymbox{\hyperlink{group__basicdatatypes_ga08c706887ae8c6e09e8f0fb5dd9a539e}{Dwarf\_Off}}\ dieoffset,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga32afecc94a71aae2be36aa279f1dded8}{Dwarf\_Bool}}\ is\_info,\doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error}}\ *\ error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ offcnt\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga08c706887ae8c6e09e8f0fb5dd9a539e}{Dwarf\_Off}}\ *offbuf\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordtype}{int}\ errv\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ i\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ errv\ =\ \doxymbox{\hyperlink{group__dieentry_gab96a88bce3ff3a447eb7266f1b66cc10}{dwarf\_offset\_list}}(dbg,dieoffset,\ is\_info,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&offbuf,\&offcnt,\ error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (errv\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ errv;}
\DoxyCodeLine{\ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{for}\ (i\ =\ 0;\ i\ <\ offcnt;\ ++i)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ use\ offbuf[i]\ }}

\end{DoxyCode}

\end{DoxyReturn}
