Rocky Bernstein > Devel-Trepan-0.58 > lib/Devel/Trepan/CmdProcessor/Load.pm

Download:
Devel-Trepan-0.58.tar.gz

Annotate this POD

View/Report Bugs
Source  

load_cmds_initialize

  load_debugger_commands($self) -> undef

Loads in our built-in commands.

Called from Devel::Trepan::CmdProcessor->new in CmdProcessor.pm

load_debugger_commands

  load_debugger_commands($self, $file_or_dir) -> @errors

Loads in debugger commands by require'ing each Perl file in the 'command' directory. Then a new instance of each class of the form Trepan::xxCommand is added to @commands and that array is returned.

load_debugger_command

  load_debugger_command($self, $command_file, [$force])

Loads a debugger command. Returns a string containing the error or '' if no error.

run_cmd

  run_cmd($self, $cmd_arry)

Looks up cmd_array[0] in @commands and runs that. We do lots of validity testing on cmd_array.

setup_command

  setup_command($self, $name)

Instantiate a Devel::Trepan::Command and extract info: the NAME, ALIASES and store the command in @commands.

syntax highlighting: