1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: stackframe.tex
3 %% Purpose: wxStackFrame documentation
4 %% Author: Vadim Zeitlin
7 %% Copyright: (c) 2005 Vadim Zeitlin
8 %% License: wxWidgets license
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 \section{\class{wxStackFrame
}}\label{wxstackframe
}
14 wxStackFrame represents a single stack frame, or a single function in the call
15 stack, and is used exclusively together with
16 \helpref{wxStackWalker
}{wxstackwalker
}, see there for a more detailed
20 \wxheading{Derived from
}
24 \wxheading{Include files
}
28 Only available if
\texttt{wxUSE
\_STACKWALKER} is $
1$, currently only
29 implemented for Win32 and Unix versions using recent version of GNU libc.
33 \helpref{wxStackWalker
}{wxstackwalker
}
36 \latexignore{\rtfignore{\wxheading{Members
}}}
39 \membersection{wxStackFrame::GetAddress
}\label{wxstackframegetaddress
}
41 \constfunc{void*
}{GetAddress
}{\void}
43 Return the address of this frame.
46 \membersection{wxStackFrame::GetFileName
}\label{wxstackframegetfilename
}
48 \constfunc{wxString
}{GetFileName
}{\void}
50 Return the name of the file containing this frame, empty if
51 unavailable (typically because debug info is missing).
53 Use
\helpref{HasSourceLocation
}{wxstackframehassourcelocation
} to check whether
54 the file name is available.
57 \membersection{wxStackFrame::GetLevel
}\label{wxstackframegetlevel
}
59 \constfunc{size
\_t}{GetLevel
}{\void}
61 Get the level of this frame (deepest/innermost one is $
0$).
64 \membersection{wxStackFrame::GetLine
}\label{wxstackframegetline
}
66 \constfunc{size
\_t}{GetLine
}{\void}
68 Return the line number of this frame, $
0$ if unavailable.
72 \helpref{GetFileName
}{wxstackframegetfilename
}
75 \membersection{wxStackFrame::GetModule
}\label{wxstackframegetmodule
}
77 \constfunc{wxString
}{GetModule
}{\void}
79 Get the module this function belongs to (empty if not available).
82 \membersection{wxStackFrame::GetName
}\label{wxstackframegetname
}
84 \constfunc{wxString
}{GetName
}{\void}
86 Return the unmangled (if possible) name of the function containing this
90 \membersection{wxStackFrame::GetOffset
}\label{wxstackframegetoffset
}
92 \constfunc{size
\_t}{GetOffset
}{\void}
94 Return the return address of this frame.
97 \membersection{wxStackFrame::GetParam
}\label{wxstackframegetparam
}
99 \constfunc{bool
}{GetParam
}{\param{size
\_t }{n
},
\param{wxString *
}{type
},
\param{wxString *
}{name
},
\param{wxString *
}{value
}}
101 Get the name, type and value (in text form) of the given parameter.
102 Any pointer may be
\texttt{NULL
} if you're not interested in the corresponding
105 Return
\true if at least some values could be retrieved.
107 This function currently is only implemented under Win32 and requires a PDB
111 \membersection{wxStackFrame::GetParamCount
}\label{wxstackframegetparamcount
}
113 \constfunc{size
\_t}{GetParamCount
}{\void}
115 Return the number of parameters of this function (may return $
0$ if we
116 can't retrieve the parameters info even although the function does have
120 \membersection{wxStackFrame::HasSourceLocation
}\label{wxstackframehassourcelocation
}
122 \constfunc{bool
}{HasSourceLocation
}{\void}
124 Return
\true if we have the file name and line number for this frame.