| 1 | package DBGp::Client::Response::StackGet; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | use parent qw(DBGp::Client::Response::Simple); | ||
| 6 | |||
| 7 | __PACKAGE__->make_attrib_accessors(qw( | ||
| 8 | transaction_id command | ||
| 9 | )); | ||
| 10 | |||
| 11 | sub frames { | ||
| 12 | return [map { | ||
| 13 | bless $_->{attrib}, 'DBGp::Client::Response::StackGet::Frame'; | ||
| 14 | } DBGp::Client::Parser::_nodes($_[0], 'stack')]; | ||
| 15 | } | ||
| 16 | |||
| 17 | package DBGp::Client::Response::StackGet::Frame; | ||
| 18 | |||
| 19 | use parent qw(DBGp::Client::Response::Simple); | ||
| 20 | |||
| 21 | __PACKAGE__->make_accessors(qw( | ||
| 22 | level type filename where lineno | ||
| 23 | )); | ||
| 24 | |||
| 25 | # TODO cmdbegin cmdend | ||
| 26 | |||
| 27 | 1; |