\doxysection{Reading high pc from a DIE. }
\hypertarget{group__examplehighpc}{}\label{group__examplehighpc}\index{Reading high pc from a DIE.@{Reading high pc from a DIE.}}


Example get high-\/pc from a DIE.  


Example get high-\/pc from a DIE. 


\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ examplehighpc(\doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ die,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga16ddc0e584ea1a17237ccf1617f31075}{Dwarf\_Addr}}\ *highpc,}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error}}\ *error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordtype}{int}\ \ \ \ \ \ \ \ res\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga16ddc0e584ea1a17237ccf1617f31075}{Dwarf\_Addr}}\ localhighpc\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga4fb2b14ce7a6d27321fa7999b46b82bd}{Dwarf\_Half}}\ form\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \textcolor{keyword}{enum}\ \doxymbox{\hyperlink{group__enums_ga9ac80540973d025e56d5cbc1332c876b}{Dwarf\_Form\_Class}}\ formclass\ =\ DW\_FORM\_CLASS\_UNKNOWN;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ res\ =\ \doxymbox{\hyperlink{group__dieentry_gaa055140b161001e2c3b12f004dacc60f}{dwarf\_highpc\_b}}(die,\&localhighpc,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&form,\&formclass,\ error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (res\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ res;}
\DoxyCodeLine{\ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (form\ !=\ DW\_FORM\_addr\ \&\&}
\DoxyCodeLine{\ \ \ \ \ \ \ \ !\doxymbox{\hyperlink{group__dieentry_gaa9d54c5450882dadc28ff092713122da}{dwarf\_addr\_form\_is\_indexed}}(form))\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga16ddc0e584ea1a17237ccf1617f31075}{Dwarf\_Addr}}\ low\_pc\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ \ The\ localhighpc\ is\ an\ offset\ from}}
\DoxyCodeLine{\textcolor{comment}{\ \ \ \ \ \ \ \ \ \ \ \ DW\_AT\_low\_pc.\ }}

\end{DoxyCode}
