1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: stackframe.tex
3 %% Purpose: wxStackFrame documentation
4 %% Author: Vadim Zeitlin
7 %% Copyright: (c) 2005 Vadim Zeitlin
8 %% License: wxWindows 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
}
30 \helpref{wxBase
}{librarieslist
}
32 Only available if
\texttt{wxUSE
\_STACKWALKER} is $
1$, currently only
33 implemented for Win32 and Unix versions using recent version of GNU libc.
37 \helpref{wxStackWalker
}{wxstackwalker
}
40 \latexignore{\rtfignore{\wxheading{Members
}}}
43 \membersection{wxStackFrame::GetAddress
}\label{wxstackframegetaddress
}
45 \constfunc{void*
}{GetAddress
}{\void}
47 Return the address of this frame.
50 \membersection{wxStackFrame::GetFileName
}\label{wxstackframegetfilename
}
52 \constfunc{wxString
}{GetFileName
}{\void}
54 Return the name of the file containing this frame, empty if
55 unavailable (typically because debug info is missing).
57 Use
\helpref{HasSourceLocation
}{wxstackframehassourcelocation
} to check whether
58 the file name is available.
61 \membersection{wxStackFrame::GetLevel
}\label{wxstackframegetlevel
}
63 \constfunc{size
\_t}{GetLevel
}{\void}
65 Get the level of this frame (deepest/innermost one is $
0$).
68 \membersection{wxStackFrame::GetLine
}\label{wxstackframegetline
}
70 \constfunc{size
\_t}{GetLine
}{\void}
72 Return the line number of this frame, $
0$ if unavailable.
76 \helpref{GetFileName
}{wxstackframegetfilename
}
79 \membersection{wxStackFrame::GetModule
}\label{wxstackframegetmodule
}
81 \constfunc{wxString
}{GetModule
}{\void}
83 Get the module this function belongs to (empty if not available).
86 \membersection{wxStackFrame::GetName
}\label{wxstackframegetname
}
88 \constfunc{wxString
}{GetName
}{\void}
90 Return the unmangled (if possible) name of the function containing this
94 \membersection{wxStackFrame::GetOffset
}\label{wxstackframegetoffset
}
96 \constfunc{size
\_t}{GetOffset
}{\void}
98 Return the return address of this frame.
101 \membersection{wxStackFrame::GetParam
}\label{wxstackframegetparam
}
103 \constfunc{bool
}{GetParam
}{\param{size
\_t }{n
},
\param{wxString *
}{type
},
\param{wxString *
}{name
},
\param{wxString *
}{value
}}
105 Get the name, type and value (in text form) of the given parameter.
106 Any pointer may be
\texttt{NULL
} if you're not interested in the corresponding
109 Return
\true if at least some values could be retrieved.
111 This function currently is only implemented under Win32 and requires a PDB
115 \membersection{wxStackFrame::GetParamCount
}\label{wxstackframegetparamcount
}
117 \constfunc{size
\_t}{GetParamCount
}{\void}
119 Return the number of parameters of this function (may return $
0$ if we
120 can't retrieve the parameters info even although the function does have
124 \membersection{wxStackFrame::HasSourceLocation
}\label{wxstackframehassourcelocation
}
126 \constfunc{bool
}{HasSourceLocation
}{\void}
128 Return
\true if we have the file name and line number for this frame.