\doxysection{Reading an aranges section }
\hypertarget{group__exampleu}{}\label{group__exampleu}\index{Reading an aranges section@{Reading an aranges section}}


Example reading .debug\+\_\+aranges.  


Example reading .debug\+\_\+aranges. 

An example accessing the .debug\+\_\+aranges section. Looking all the aranges entries. This example is not searching for anything.


\begin{DoxyParams}{Parameters}
{\em dbg} & The \doxylink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\+\_\+\+Debug} of interest. \\
\hline
{\em dw\+\_\+error} & On error dw\+\_\+error is set to point to the error details. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
DW\+\_\+\+DLV\+\_\+\+OK etc.
\end{DoxyReturn}

\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keyword}{static}\ \textcolor{keywordtype}{void}\ cleanupbadarange(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga293719c19ccd6a950e3f104d3fc54ffa}{Dwarf\_Arange}}\ *arange,\ \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\_Signed}}\ i,\ \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\_Signed}}\ count)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\_Signed}}\ k\ =\ i;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{for}\ (\ ;\ k\ <\ count;\ ++k)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \doxymbox{\hyperlink{group__dwarfdealloc_gae16282e9709d62dd0cb6b61b11ce36eb}{dwarf\_dealloc}}(dbg,arange[k]\ ,\ DW\_DLA\_ARANGE);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ arange[k]\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \}}
\DoxyCodeLine{\}}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ exampleu(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg,\doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error\ <em>}}error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ /</em>\ \ It\ is\ a\ historical\ accident\ that\ the\ count\ is\ \textcolor{keywordtype}{signed}.}
\DoxyCodeLine{\ \ \ \ \ \ \ \ No\ negative\ count\ is\ possible.\ }

\end{DoxyCode}
