/**
|
/**
|
* @file
|
* @file
|
* @copyright Copyright 2017 GNSS Sensor Ltd. All right reserved.
|
* @copyright Copyright 2017 GNSS Sensor Ltd. All right reserved.
|
* @author Sergey Khabarov - sergeykhbr@gmail.com
|
* @author Sergey Khabarov - sergeykhbr@gmail.com
|
* @brief Browse symbols command.
|
* @brief Browse symbols command.
|
*/
|
*/
|
|
|
#ifndef __DEBUGGER_CMD_SYMB_H__
|
#ifndef __DEBUGGER_CMD_SYMB_H__
|
#define __DEBUGGER_CMD_SYMB_H__
|
#define __DEBUGGER_CMD_SYMB_H__
|
|
|
#include "api_core.h"
|
#include "api_core.h"
|
#include "coreservices/itap.h"
|
#include "coreservices/itap.h"
|
#include "coreservices/isocinfo.h"
|
#include "coreservices/isocinfo.h"
|
#include "coreservices/icommand.h"
|
#include "coreservices/icommand.h"
|
|
|
namespace debugger {
|
namespace debugger {
|
|
|
class CmdSymb : public ICommand {
|
class CmdSymb : public ICommand {
|
public:
|
public:
|
explicit CmdSymb(ITap *tap, ISocInfo *info);
|
explicit CmdSymb(ITap *tap, ISocInfo *info);
|
|
|
/** ICommand */
|
/** ICommand */
|
virtual bool isValid(AttributeType *args);
|
virtual bool isValid(AttributeType *args);
|
virtual void exec(AttributeType *args, AttributeType *res);
|
virtual void exec(AttributeType *args, AttributeType *res);
|
|
|
private:
|
private:
|
void applyFilter(const char *filt, AttributeType *in, AttributeType *out);
|
void applyFilter(const char *filt, AttributeType *in, AttributeType *out);
|
bool filt_pass(const char *filt, const char *symbname);
|
bool filt_pass(const char *filt, const char *symbname);
|
};
|
};
|
|
|
} // namespace debugger
|
} // namespace debugger
|
|
|
#endif // __DEBUGGER_CMD_SYMB_H__
|
#endif // __DEBUGGER_CMD_SYMB_H__
|
|
|