2009-09-23 13:37:39 +02:00
|
|
|
/**************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator
|
|
|
|
|
**
|
|
|
|
|
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
|
|
|
**
|
|
|
|
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
|
|
|
|
**
|
|
|
|
|
** Commercial Usage
|
|
|
|
|
**
|
|
|
|
|
** Licensees holding valid Qt Commercial licenses may use this file in
|
|
|
|
|
** accordance with the Qt Commercial License Agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
|
|
|
|
** a written agreement between you and Nokia.
|
|
|
|
|
**
|
|
|
|
|
** GNU Lesser General Public License Usage
|
|
|
|
|
**
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU Lesser
|
|
|
|
|
** General Public License version 2.1 as published by the Free Software
|
|
|
|
|
** Foundation and appearing in the file LICENSE.LGPL included in the
|
|
|
|
|
** packaging of this file. Please review the following information to
|
|
|
|
|
** ensure the GNU Lesser General Public License version 2.1 requirements
|
|
|
|
|
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
|
|
|
|
**
|
|
|
|
|
** If you are unsure which license is appropriate for your use, please
|
|
|
|
|
** contact the sales department at http://qt.nokia.com/contact.
|
|
|
|
|
**
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef DEBUGGER_COREGDBADAPTER_H
|
|
|
|
|
#define DEBUGGER_COREGDBADAPTER_H
|
|
|
|
|
|
|
|
|
|
#include "abstractgdbadapter.h"
|
|
|
|
|
|
2009-10-20 18:05:56 +02:00
|
|
|
#ifdef Q_OS_LINUX
|
|
|
|
|
# define EXE_FROM_CORE
|
|
|
|
|
#endif
|
|
|
|
|
|
2009-09-23 13:37:39 +02:00
|
|
|
namespace Debugger {
|
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// CoreGdbAdapter
|
|
|
|
|
//
|
|
|
|
|
///////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
class CoreGdbAdapter : public AbstractGdbAdapter
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
CoreGdbAdapter(GdbEngine *engine, QObject *parent = 0);
|
|
|
|
|
|
2009-09-24 10:08:17 +02:00
|
|
|
bool dumpersAvailable() const { return false; }
|
2009-09-23 13:37:39 +02:00
|
|
|
|
|
|
|
|
void startAdapter();
|
|
|
|
|
void startInferior();
|
|
|
|
|
void interruptInferior();
|
|
|
|
|
|
2009-10-06 13:33:06 +02:00
|
|
|
private:
|
2009-10-20 18:05:56 +02:00
|
|
|
void loadExeAndSyms();
|
|
|
|
|
void loadCoreFile();
|
2009-09-24 11:16:00 +02:00
|
|
|
void handleFileExecAndSymbols(const GdbResponse &response);
|
2009-10-20 18:05:56 +02:00
|
|
|
void handleTargetCore(const GdbResponse &response);
|
2009-09-23 13:37:39 +02:00
|
|
|
|
2009-10-20 18:05:56 +02:00
|
|
|
#ifdef EXE_FROM_CORE
|
|
|
|
|
int m_round;
|
|
|
|
|
#endif
|
2009-09-30 12:27:03 +02:00
|
|
|
QString m_executable;
|
2009-09-23 13:37:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace Debugger
|
|
|
|
|
|
|
|
|
|
#endif // DEBUGGER_COREDBADAPTER_H
|