\doxysection{Using dwarf\+\_\+discr\+\_\+list() }
\hypertarget{group__examplediscrlist}{}\label{group__examplediscrlist}\index{Using dwarf\_discr\_list()@{Using dwarf\_discr\_list()}}


Example using dwarf\+\_\+discr\+\_\+list, dwarf\+\_\+formblock.  


Example using dwarf\+\_\+discr\+\_\+list, dwarf\+\_\+formblock. 

An example calling dwarf\+\_\+get\+\_\+form\+\_\+class, dwarf\+\_\+discr\+\_\+list, and dwarf\+\_\+formblock. and the dwarf\+\_\+deallocs applicable.

\begin{DoxySeeAlso}{See also}
\doxylink{group__attrform_ga9547862557c92006bb2554bffb2683f8}{dwarf\+\_\+discr\+\_\+list} 

\doxylink{group__attrform_ga3b1fd6183b2cfd7e76570d6dbd65a839}{dwarf\+\_\+get\+\_\+form\+\_\+class} 

\doxylink{group__attrform_ga179a259d5b917294f30eef8823d279d2}{dwarf\+\_\+formblock}
\end{DoxySeeAlso}

\begin{DoxyParams}{Parameters}
{\em dw\+\_\+dbg} & The applicable \doxylink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\+\_\+\+Debug} \\
\hline
{\em dw\+\_\+die} & The applicable \doxylink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\+\_\+\+Die} \\
\hline
{\em dw\+\_\+attr} & The applicable \doxylink{group__allstructs_ga3b8f8b4e43653647a2face222040a915}{Dwarf\+\_\+\+Attribute} \\
\hline
{\em dw\+\_\+attrnum,The} & attribute number passed in to shorten this example a bit. \\
\hline
{\em dw\+\_\+isunsigned,The} & attribute number passed in to shorten this example a bit. \\
\hline
{\em dw\+\_\+theform,The} & form number passed in to shorten this example a bit. \\
\hline
{\em dw\+\_\+error} & The usual error pointer. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Returns DW\+\_\+\+DLV\+\_\+\+OK etc 
\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ example\_discr\_list(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ die,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga3b8f8b4e43653647a2face222040a915}{Dwarf\_Attribute}}\ attr,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga4fb2b14ce7a6d27321fa7999b46b82bd}{Dwarf\_Half}}\ attrnum,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga32afecc94a71aae2be36aa279f1dded8}{Dwarf\_Bool}}\ isunsigned,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga4fb2b14ce7a6d27321fa7999b46b82bd}{Dwarf\_Half}}\ theform,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error\ <em>}}error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ /</em>\ \ The\ example\ here\ assumes\ that}
\DoxyCodeLine{\ \ \ \ \ \ \ \ attribute\ attr\ is\ a\ DW\_AT\_discr\_list.}
\DoxyCodeLine{\ \ \ \ \ \ \ \ isunsigned\ should\ be\ set\ from\ the\ signedness}
\DoxyCodeLine{\ \ \ \ \ \ \ \ of\ the\ parent\ of\ \textcolor{stringliteral}{'die'}\ per\ DWARF\ rules\ \textcolor{keywordflow}{for}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ DW\_AT\_discr\_list.\ }

\end{DoxyCode}

\end{DoxyReturn}
