2 * See the dyninst/COPYRIGHT file for copyright information.
4 * We provide the Paradyn Tools (below described as "Paradyn")
5 * on an AS IS basis, and do not warrant its validity or performance.
6 * We reserve the right to update, modify, or discontinue this
7 * software at any time. We shall have no obligation to supply such
8 * updates or modifications or any other form of support to you.
10 * By your use of Paradyn, you understand and agree that we (or any
11 * other person or entity with proprietary rights in Paradyn) are
12 * under no obligation to provide either maintenance services,
13 * update services, notices of latent defects, or correction of
14 * defects for Paradyn.
16 * This library is free software; you can redistribute it and/or
17 * modify it under the terms of the GNU Lesser General Public
18 * License as published by the Free Software Foundation; either
19 * version 2.1 of the License, or (at your option) any later version.
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31 #ifndef STEPPERGROUP_H_
32 #define STEPPERGROUP_H_
34 #include "basetypes.h"
35 #include "procstate.h"
39 namespace Stackwalker {
47 std::set<FrameStepper *> steppers;
49 StepperGroup(Walker *new_walker);
50 virtual ~StepperGroup();
52 virtual bool addStepper(FrameStepper *stepper, Address start, Address end) = 0;
53 virtual bool findStepperForAddr(Dyninst::Address addr,
55 const FrameStepper *last_tried = NULL) = 0;
56 virtual Walker *getWalker() const;
57 virtual void registerStepper(FrameStepper *stepper);
58 virtual void newLibraryNotification(LibAddrPair *libaddr, lib_change_t change);
59 void getSteppers(std::set<FrameStepper *> &steppers);
62 class AddrRangeGroupImpl;
64 class AddrRangeGroup : public StepperGroup {
66 AddrRangeGroupImpl *impl;
68 AddrRangeGroup(Walker *new_walker);
70 virtual bool addStepper(FrameStepper *stepper, Address start, Address end);
71 virtual bool findStepperForAddr(Dyninst::Address addr,
73 const FrameStepper *last_tried = NULL);
74 virtual ~AddrRangeGroup();