\doxysection{Accessing rnglists section }
\hypertarget{group__example__rnglist__for__attribute}{}\label{group__example__rnglist__for__attribute}\index{Accessing rnglists section@{Accessing rnglists section}}


Example showing access to rnglists on an Attribute.  


Example showing access to rnglists on an Attribute. 

This is accessing DWARF5 .debug\+\_\+rnglists. The section first appears in DWARF5.


\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ example\_rnglist\_for\_attribute(\doxymbox{\hyperlink{group__allstructs_ga3b8f8b4e43653647a2face222040a915}{Dwarf\_Attribute}}\ attr,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ attrvalue,\doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error\ <em>}}error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ /</em>\ \ attrvalue\ must\ be\ the\ DW\_AT\_ranges}
\DoxyCodeLine{\ \ \ \ \ \ \ \ DW\_FORM\_rnglistx\ or\ DW\_FORM\_sec\_offset\ value}
\DoxyCodeLine{\ \ \ \ \ \ \ \ extracted\ from\ attr.\ }

\end{DoxyCode}
