-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow for optional Bullwinkle processor. Add superclass Processor for…
… common CmdProcessor and BWProcessor code.
- Loading branch information
Rocky Bernstein
committed
Dec 11, 2012
1 parent
8581e5b
commit 0bc435e
Showing
6 changed files
with
283 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright (C) 2012 Rocky Bernstein <rocky@cpan.org> | ||
|
||
use rlib '../..'; | ||
|
||
# A debugger command processor. This includes the debugger commands | ||
# and ties together the debugger core and I/O interface. | ||
package Devel::Trepan::Processor; | ||
|
||
use vars qw(@EXPORT @ISA); | ||
@EXPORT = qw( adjust_frame running_initialize); | ||
@ISA = qw( Exporter ); | ||
|
||
use English qw( -no_match_vars ); | ||
use Exporter; | ||
use warnings; no warnings 'redefine'; | ||
|
||
eval "require Devel::Trepan::DB::Display"; | ||
use Devel::Trepan::Processor::Frame; | ||
use Devel::Trepan::Processor::Running; | ||
use strict; | ||
|
||
# attr_reader :settings | ||
sub new($$;$) { | ||
my ($class, $interfaces, $settings) = @_; | ||
$settings ||= {}; | ||
my $self = { | ||
class => $class, | ||
interfaces => $interfaces, | ||
settings => $settings, | ||
}; | ||
bless ($self, $class); | ||
return $self; | ||
} | ||
|
||
unless (caller) { | ||
require Devel::Trepan::Interface::User; | ||
my $intf = Devel::Trepan::Interface::User->new; | ||
my $proc = __PACKAGE__->new([$intf]); | ||
print $proc->{class}, "\n"; | ||
require Data::Dumper; | ||
print Data::Dumper::Dumper($proc->{interfaces});; | ||
} | ||
|
||
|
||
1; |
Oops, something went wrong.