Highlighting the fact that debuginfo is not needed for SDT probes to work; rework caller_is example
This commit is contained in:
parent
3554d9c84c
commit
27a1de29b7
1 changed files with 11 additions and 4 deletions
|
@ -231,7 +231,7 @@ process("./example-stap").mark("my_probe") $arg1:long
|
|||
\pause
|
||||
\item{Integrated with the \textit{breakpoint} system. Support for printing a \probe{}'s argument value.}
|
||||
\pause
|
||||
\item{Not necessary to include debug information in your binary (\texttt{-g} flag); arguments are encoded directly in the asm.}
|
||||
\item{\textcolor{red}{Not necessary to include debug information in your binary (\texttt{-g} flag); arguments are encoded directly in the asm.}}
|
||||
\pause
|
||||
\item{Also possible to use optmization flags (\texttt{-O}).}
|
||||
\end{itemize}
|
||||
|
@ -339,7 +339,6 @@ $2 = 10
|
|||
|
||||
\begin{frame}[fragile]
|
||||
\frametitle{\python{}$^3$}
|
||||
% \begin{itemize}
|
||||
\begin{block}{caller\_is.py}
|
||||
\tiny
|
||||
\begin{lstlisting}[language=python,showstringspaces=false]
|
||||
|
@ -370,8 +369,16 @@ CallerIs()
|
|||
\begin{frame}[fragile]
|
||||
\frametitle{\python{}$^4$}
|
||||
\begin{itemize}
|
||||
\item{\verb|(gdb) source caller_is.py|}
|
||||
\item{\verb|(gdb) break foo if $caller_is ("bar")|}
|
||||
\item{To use it:}
|
||||
\begin{block}{Using caller\_is.py}
|
||||
\tiny
|
||||
\begin{lstlisting}[language=sh,showstringspaces=false]
|
||||
(gdb) source caller_is.py
|
||||
(gdb) break foo if $caller_is ("bar")
|
||||
\end{lstlisting}
|
||||
\end{block}
|
||||
\item{Internal variables and functions on \gdb{} start with \verb|$|.}
|
||||
\item{\texttt{caller\_is.py} is part of upstream \gdb{}.}
|
||||
\end{itemize}
|
||||
\end{frame}
|
||||
|
||||
|
|
Loading…
Reference in a new issue