⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 valgrind_object.h

📁 Linux平台下的内核及程序调试器
💻 H
字号:
/* ---------------------------------------------------------------------  * Definition of class Valgrind                        valgrind_object.h * Valgrind-specific options / flags / fns * --------------------------------------------------------------------- * This file is part of Valkyrie, a front-end for Valgrind * Copyright (c) 2000-2006, OpenWorks LLP <info@open-works.co.uk> * This program is released under the terms of the GNU GPL v.2 * See the file LICENSE.GPL for the full license details. */#ifndef __VALGRIND_OBJECT_H#define __VALGRIND_OBJECT_H#include "vk_objects.h"#include "valgrind_options_page.h"#include "tool_object.h"/* class Valgrind ------------------------------------------------------ */class Valgrind : public VkObject{public:   Valgrind();   ~Valgrind();   /* returns a list of non-default flags to pass to valgrind */   QStringList modifiedVgFlags( const ToolObject* tool_obj );   /* check argval for this option, updating if necessary.      called by parseCmdArgs() and gui option pages */   int checkOptArg( int optid, QString& argval );   enum vgOpts {      TOOL,           // --tool      /* common options relevant to all tools */      VERBOSITY,      // --verbosity      TRACE_CH,       // --trace-children      TRACK_FDS,      // --track-fds      TIME_STAMP,     // --time-stamp      LOG_FD,         // --log-fd      LOG_PID,        // --log-file      LOG_FILE,       // --log-file-exactly      LOG_QUAL,       // --log-file-qualifier      LOG_SOCKET,     // --log-socket      /* uncommon options relevant to all tools */      RUN_LIBC,       // --run-libc-freeres      SIM_HINTS,      // --sim-hints      KERN_VAR,       // --kernel-variant      EM_WARNS,       // --show-emwarns      SMC_CHECK,      // --smc-check      /* options relevant to error-reporting tools */      XML_OUTPUT,     // --xml      XML_COMMENT,    // -- xml-user-comment      DEMANGLE,       // --demangle      NUM_CALLERS,    // --num-callers      ERROR_LIMIT,    // --error-limit      SHOW_BELOW,     // --show-below-main      /* suppressions hackery */      SUPPS_DIRS,     /* list of suppfile dirs - feeds SUPPS_AVAIL list */      SUPPS_AVAIL,    /* fake opt: dyname list of available supp files */      SUPPS_SEL,      /* the currently selected suppression(s) */      /* misc */      GEN_SUPP,       // --gen-suppressions      DB_ATTACH,      // --db-attach      DB_COMMAND,     // --db-command      INPUT_FD,       // --input-fd      MAX_SFRAME,     // --max-stackframe      NUM_OPTS   };   unsigned int maxOptId() { return NUM_OPTS; }   OptionsPage* createOptionsPage( OptionsWindow* parent ) {      return (OptionsPage*)new ValgrindOptionsPage( parent, this );   }public:   /* ToolObject access */   ToolObjList toolObjList();   int         toolObjId( const QString& name );   ToolObject* toolObj( int tid );   ToolObject* toolObj( const QString& name );private:   /* creates the various VkObjects and initialises their options,      ready for cmd-line parsing (if any). */   void initToolObjects();   ToolObjList m_toolObjList;  /* Tools */};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -