From 82f0f3f38f2a87e08a5d815721498247c9bdaef4 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 6 Jun 2015 16:42:35 -0400 Subject: [PATCH] More doc --- docs/commands/set/events.rst | 12 ++++++++---- trepan/processor/command/set_subcmd/events.py | 9 +++++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/commands/set/events.rst b/docs/commands/set/events.rst index 3de3df2d..bf819816 100644 --- a/docs/commands/set/events.rst +++ b/docs/commands/set/events.rst @@ -4,8 +4,11 @@ Set Events ---------- **set events** [*event* ...] -Sets the events that the debugger will stop on. `all` can be used as -an abbreviation for listing all event names. +Sets the events that the debugger will stop on. Event names are: +`c_call`, `c_exception`, `c_return`, `call`, `exception`, `line`, +or `return`. + +`all` can be used as an abbreviation for listing all event names. Changing trace event filters works independently of turning on or off tracing-event printing. @@ -13,6 +16,8 @@ tracing-event printing. Examples: +++++++++ +:: + set events line # Set trace filter for line events only. set events call return # Trace calls and returns only set events all # Set trace filter to all events. @@ -20,5 +25,4 @@ Examples: See also: +++++++++ -`set trace`, `show trace`, and `show events`. `help step` lists event names. - \ No newline at end of file +`set trace`, `show trace`, and `show events` diff --git a/trepan/processor/command/set_subcmd/events.py b/trepan/processor/command/set_subcmd/events.py index a439f798..c9cee024 100644 --- a/trepan/processor/command/set_subcmd/events.py +++ b/trepan/processor/command/set_subcmd/events.py @@ -24,8 +24,11 @@ class SetEvents(Mbase_subcmd.DebuggerSubcommand): """**set events** [*event* ...] -Sets the events that the debugger will stop on. `all` can be used as -an abbreviation for listing all event names. +Sets the events that the debugger will stop on. Event names are: +`c_call`, `c_exception`, `c_return`, `call`, `exception`, `line`, +or `return`. + +`all` can be used as an abbreviation for listing all event names. Changing trace event filters works independently of turning on or off tracing-event printing. @@ -33,6 +36,8 @@ class SetEvents(Mbase_subcmd.DebuggerSubcommand): Examples: --------- +:: + set events line # Set trace filter for line events only. set events call return # Trace calls and returns only set events all # Set trace filter to all events.