\doxysection{Examining Section Group data }
\hypertarget{group__examplesecgroup}{}\label{group__examplesecgroup}\index{Examining Section Group data@{Examining Section Group data}}


Example accessing Section Group data.  


Example accessing Section Group data. 

With split dwarf your libdwarf calls after than the initial open are done against the base Dwarf\+\_\+\+Dbg and libdwarf automatically looks in the open tied dbg when and as appropriate. the tied-\/dbg can be detached too, see example3 link, though you must call dwarf\+\_\+finish() on the detached dw\+\_\+tied\+\_\+dbg, the library will not do that for you..

Section groups apply to Elf COMDAT groups too.


\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{void}\ examplesecgroup(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordtype}{int}\ res\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ section\_count\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ group\_count;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ selected\_group\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ group\_map\_entry\_count\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ *sec\_nums\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ *group\_nums\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ **\ \ \ sec\_names\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error}}\ \ \ \ \ error\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ i\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ res\ =\ \doxymbox{\hyperlink{group__secgroups_ga894bc7aaf5c3545cff97c4987c5b4570}{dwarf\_sec\_group\_sizes}}(dbg,\&section\_count,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&group\_count,\&selected\_group,\ \&group\_map\_entry\_count,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (res\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ Something\ is\ badly\ wrong}}

\end{DoxyCode}
