From 1d66040712a426b2ebe1e79cc7cf5a7cd53168c4 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 23 Jan 2018 03:34:14 +0000 Subject: debugging-tools: fixup typos Fixup some copy/paste errors. Signed-off-by: John Ogness --- .../debugging-tools/pres_debugging-tools_en.tex | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/application-devel/debugging-tools/pres_debugging-tools_en.tex b/application-devel/debugging-tools/pres_debugging-tools_en.tex index ccbe9be..4adf4f8 100644 --- a/application-devel/debugging-tools/pres_debugging-tools_en.tex +++ b/application-devel/debugging-tools/pres_debugging-tools_en.tex @@ -448,7 +448,7 @@ $ MALLOC_TRACE=mem_leak.trace ./mem_leak \end{verbatim} view the trace results \begin{verbatim} -$ mtrace ./mem_leak mytrace.log +$ mtrace ./mem_leak mem_leak.trace Memory not freed: ----------------- @@ -466,7 +466,7 @@ With a patched mtrace, PIE can be traced by disabling ASLR. \begin{verbatim} $ gcc -fPIE -pie -g -omem_leak mem_leak.c $ setarch `uname -m` -R env MALLOC_TRACE=mem_leak.trace ./mem_leak -$ setarch `uname -m` -R ./mtrace-patched ./mem_leak mytrace.log +$ setarch `uname -m` -R ./mtrace-patched ./mem_leak mem_leak.trace Memory not freed: ----------------- @@ -480,21 +480,21 @@ Address Size Caller \begin{frame}[containsverbatim] \frametitle{glibc Hooks for malloc()} -\_\_malloc\_hook:\\ +\_\_malloc\_hook: \begin{verbatim} -void *function (size\_t size, const void *caller) +void *function (size_t size, const void *caller) \end{verbatim} -\_\_realloc\_hook:\\ +\_\_realloc\_hook: \begin{verbatim} -void *function (void *ptr, size\_t size, const void *caller)\\ +void *function (void *ptr, size_t size, const void *caller) \end{verbatim} -\_\_free\_hook:\\ +\_\_free\_hook: \begin{verbatim} -void *function (void *ptr, const void *caller)\\ +void *function (void *ptr, const void *caller) \end{verbatim} -\_\_memalign\_hook:\\ +\_\_memalign\_hook: \begin{verbatim} -void *function (size\_t size, size\_t alignment, const void *caller) +void *function (size_t size, size_t alignment, const void *caller) \end{verbatim} Do not use them! Use mtrace instead! \end{frame} -- cgit v1.2.3