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 #include "stackwalk/h/swk_errors.h"
32 #include "stackwalk/h/walker.h"
33 #include "stackwalk/h/basetypes.h"
34 #include "stackwalk/h/procstate.h"
35 #include "stackwalk/h/framestepper.h"
36 #include "stackwalk/src/linuxbsd-swk.h"
37 #include "common/h/dyn_regs.h"
39 #include <sys/ptrace.h>
44 using namespace Dyninst;
45 using namespace Dyninst::Stackwalker;
47 bool Walker::createDefaultSteppers()
49 FrameStepper *stepper;
52 stepper = new FrameFuncStepper(this);
53 result = addStepper(stepper);
55 sw_printf("[%s:%u] - Error adding stepper %p\n", __FILE__, __LINE__,
63 gcframe_ret_t SigHandlerStepperImpl::getCallerFrame(const Frame &/*in*/,
67 * TODO: Implement me on non-x86 platforms.