2 * Copyright (c) 1996-2007 Barton P. Miller
4 * We provide the Paradyn Parallel Performance Tools (below
5 * described as "Paradyn") on an AS IS basis, and do not warrant its
6 * validity or performance. We reserve the right to update, modify,
7 * or discontinue this software at any time. We shall have no
8 * obligation to supply such updates or modifications or any other
9 * form of support to you.
11 * By your use of Paradyn, you understand and agree that we (or any
12 * other person or entity with proprietary rights in Paradyn) are
13 * under no obligation to provide either maintenance services,
14 * update services, notices of latent defects, or correction of
15 * defects for Paradyn.
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License as published by the Free Software Foundation; either
20 * version 2.1 of the License, or (at your option) any later version.
22 * This library is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * Lesser General Public License for more details.
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with this library; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
32 #ifndef BLUEGENEP_SWK_H
33 #define BLUEGENEP_SWK_H
35 #include "bluegene-swk.h"
40 namespace Stackwalker {
42 class ProcDebugBGP : public ProcDebugBG {
43 friend class ProcDebugBG;
44 friend class ProcDebug;
47 ProcDebugBGP(PID pid, std::string executable);
48 virtual ~ProcDebugBGP();
49 virtual bool isLibraryTrap(Dyninst::THR_ID thrd);
50 virtual bool getThreadIds(std::vector<THR_ID> &threads);
53 virtual bool pollForNewThreads();
54 virtual bool debug_post_attach(ThreadState *ts);
55 virtual void registerLibSpotter();
56 virtual bool debug_handle_event(DebugEvent ev);
57 virtual void translate_event(const DebuggerInterface::BG_Debugger_Msg& msg,
62 Address lib_load_trap;
68 #endif // BLUEGENEP_SWK_H