|
From: <sv...@va...> - 2005-05-01 08:55:45
|
Author: sewardj
Date: 2005-05-01 09:55:38 +0100 (Sun, 01 May 2005)
New Revision: 3583
Modified:
trunk/coregrind/core.h
trunk/coregrind/vg_main.c
trunk/docs/xml/manual-core.xml
Log:
New flag --trace-cfi=3Dyes|no [no], which is for debugging the CFI reader=
.
Modified: trunk/coregrind/core.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/core.h 2005-04-30 18:47:48 UTC (rev 3582)
+++ trunk/coregrind/core.h 2005-05-01 08:55:38 UTC (rev 3583)
@@ -231,6 +231,8 @@
extern Bool VG_(clo_trace_signals);
/* DEBUG: print symtab details? default: NO */
extern Bool VG_(clo_trace_symtab);
+/* DEBUG: print call-frame-info details? default: NO */
+extern Bool VG_(clo_trace_cfi);
/* DEBUG: print redirection details? default: NO */
extern Bool VG_(clo_trace_redir);
/* DEBUG: print thread scheduling events? default: NO */
Modified: trunk/coregrind/vg_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/vg_main.c 2005-04-30 18:47:48 UTC (rev 3582)
+++ trunk/coregrind/vg_main.c 2005-05-01 08:55:38 UTC (rev 3583)
@@ -1435,6 +1435,7 @@
Bool VG_(clo_trace_syscalls) =3D False;
Bool VG_(clo_trace_signals) =3D False;
Bool VG_(clo_trace_symtab) =3D False;
+Bool VG_(clo_trace_cfi) =3D False;
Bool VG_(clo_trace_redir) =3D False;
Bool VG_(clo_trace_sched) =3D False;
Bool VG_(clo_trace_pthreads) =3D False;
@@ -1509,6 +1510,7 @@
" --trace-syscalls=3Dno|yes show all system calls? [no]\n"
" --trace-signals=3Dno|yes show signal handling details? [no]\n"
" --trace-symtab=3Dno|yes show symbol table details? [no]\n"
+" --trace-cfi=3Dno|yes show call-frame-info details? [no]\n"
" --trace-sched=3Dno|yes show thread scheduler details? [no]\n"
" --wait-for-gdb=3Dyes|no pause on startup to wait for gdb attach=
\n"
#if 0
@@ -1704,6 +1706,7 @@
else VG_BOOL_CLO(arg, "--trace-sched", VG_(clo_trace_sched))
else VG_BOOL_CLO(arg, "--trace-signals", VG_(clo_trace_signals)=
)
else VG_BOOL_CLO(arg, "--trace-symtab", VG_(clo_trace_symtab))
+ else VG_BOOL_CLO(arg, "--trace-cfi", VG_(clo_trace_cfi))
else VG_BOOL_CLO(arg, "--trace-redir", VG_(clo_trace_redir))
else VG_BOOL_CLO(arg, "--trace-syscalls", VG_(clo_trace_syscalls=
))
else VG_BOOL_CLO(arg, "--trace-pthreads", VG_(clo_trace_pthreads=
))
Modified: trunk/docs/xml/manual-core.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/docs/xml/manual-core.xml 2005-04-30 18:47:48 UTC (rev 3582)
+++ trunk/docs/xml/manual-core.xml 2005-05-01 08:55:38 UTC (rev 3583)
@@ -1076,10 +1076,23 @@
<para><computeroutput>--trace-symtab=3Dno</computeroutput>
[default]</para>
<para><computeroutput>--trace-symtab=3Dyes</computeroutput></para>
- <para>Enable/disable tracing of symbol table reading.</para>
+ <para>Enable/disable tracing of symbol table reading and line
+ number info reading.</para>
</listitem>
=20
<listitem>
+ <para><computeroutput>--trace-cfi=3Dno</computeroutput>
+ [default]</para>
+ <para><computeroutput>--trace-cfi=3Dyes</computeroutput></para>
+ <para>Enable/disable tracing of call-frame-info reading.
+ Call-frame-info (CFI) is information inserted by compilers=20
+ which describes the relationship between adjacent call frames.
+ On architectures which by default do not use a frame pointer,=20
+ such as AMD64, this information is essential for creating stack=20
+ snapshots.</para>
+ </listitem>
+
+ <listitem>
<para><computeroutput>--trace-malloc=3Dno</computeroutput>
[default]</para>
<para><computeroutput>--trace-malloc=3Dyes</computeroutput></para>
|