gdb我在我本机上p不了,在别人机子上可以,不知道什么

(gdb) p EventFlow->devicetype
There is no member or method named devicetype.
(gdb) p (EventFlow->devicetype)
There is no member or method named devicetype.
(gdb) n
403 EventFlow->DspLen = log_size;
(gdb) p log_size
$4 = 682
(gdb) p EventFlow->DspLen
There is no member or method named DspLen.
(gdb) p (char*)EventFlow->DspLen
There is no member or method named DspLen.
(gdb) p (char*)EventFlow->DspLen
There is no member or method named DspLen.
(gdb)
There is no member or method named DspLen.
(gdb) p EventFlow
$5 = {px = 0xf856d0, pn = {pi_ = 0xf15890}}
(gdb) p (int)(EventFlow->devicetype)
There is no member or method named devicetype.
(gdb) p (int*)(EventFlow->devicetype)
There is no member or method named devicetype.

=======================================

这样可以
(gdb) ptype EventFlow
type = class boost::shared_ptr<STEVENTFLOW> {
private:
STEVENTFLOW *px;
boost::detail::shared_count pn;

public:
void shared_ptr(void);
boost::shared_ptr<STEVENTFLOW> & operator=(const boost::shared_ptr<STEVENTFLOW> &);
void reset(void);
STEVENTFLOW & operator*(void) const;
STEVENTFLOW * operator->(void) const;
void operator[](long) const;
STEVENTFLOW * get(void) const;
operator STEVENTFLOW* boost::shared_ptr<STEVENTFLOW>::*(void) const;
bool operator!(void) const;
bool unique(void) const;
long use_count(void) const;
void swap(boost::shared_ptr<STEVENTFLOW> &);
void * _internal_get_deleter(const boost::detail::shared_count::sp_typeinfo &) const;
void * _internal_get_untyped_deleter(void) const;
bool _internal_equiv(const boost::shared_ptr<STEVENTFLOW> &) const;
void shared_ptr<STEVENTFLOW>(STEVENTFLOW *);
}
(gdb) p EventFlow.px->devicetype
$9 = 0
(gdb) p EventFlow.px->Type
$10 = "DDoS"
(gdb) p EventFlow.px->Status
$11 = "Ongoing"

gdb我在我本机上p不了,在别人机子上可以的更多相关文章

  1. 怎么把宿主机上的镜像推送到hub上

    怎么把宿主机上的镜像推送到hub上: 1.查看系统中存在的镜像: [root@izuf63bjp8ts8nkl13pxh1z devicemapper]# docker imagesREPOSITOR ...

  2. 利用Xshell5从本机上向Linux(虚拟机中)上传文件

    Xmanager Enterprise 5云盘分享:  http://pan.baidu.com/s/1jIkiQNW 1. 用ifconfig命令查看Linux的IP地址 2. 由于没有IP,所以我 ...

  3. mq本机上能用,其他机子上连上不mq

    有一次遇到了记录下.原因是suse11重启后会自动开防火墙. 关了防火墙. rcSuSEfirewall2 stopShutting down the Firewall done

  4. 文件对象FSO应用 文件对象FSO应用

    FileSystemObject对象被用来访问服务器上的文件系统.这个对象能够处理文件.文件夹和目录路径.用它来检索文件系统信息也是可能的. 下面的代码创建了一个文本文件,并写入了一些文本: dim ...

  5. 一句话介绍python线程、进程和协程

    一.进程: Python的os模块封装了常见的系统调用,其中就包括fork.而fork是linux常用的产生子进程的方法,简言之是一个调用,两个返回. 在python中,以下的两个模块用于进程的使用. ...

  6. 用Eclipse和GDB构建ARM交叉编译和在线调试环境

    我们在 Linux 主机中搭建我们的开发环境,使用 Ubuntu 10.04 LTS 为例. 搭建应用开发环境   安装 JRE Eclipse 依赖于Java 环境,所以必须先安装 JRE 或 JD ...

  7. gdb 远程调试android进程 -转

    什么是gdb 它是gnu组织开发的一个强大的unix程序调试工具,我们可以用它来调试Android上的C.C++代码. 它主要可以做4件事情: 随心所欲地启动你的程序. 设置断点,程序执行到断点处会停 ...

  8. 40.Linux应用调试-使用gdb和gdbserver

    1.gdb和gdbserver调试原理 通过linux虚拟机里的gdb,来向开发板里的gdbserver发送命令,比如设置断点,运行setp等,然后开发板上的gdbserver收到命令后,便会执行应用 ...

  9. 交叉编译问题记录-嵌入式环境下 GDB 的使用方法

    本文为作者原创,转载请注明出处:https://www.cnblogs.com/leisure_chn/p/10693247.html 本文以嵌入式 Linux 环境下的 gdb 使用为例,记录交叉编 ...

随机推荐

  1. IEnumerable<T>转DataTable,为空怎么办?

    public static class DataConvertor { public static DataTable ToDataTable<T>(IEnumerable<T> ...

  2. LVS-DR实现mysql负载均衡集群

    lvs-dr实现mysql负载均衡集群 环境说明: 服务器的操作系统均为centos7,vip和rip在同一网段,使用lvs-dr模型来实现mysql集群服务 所有服务器均已配置好处VIP外的静态IP ...

  3. Python实现 QQ 半自动发送情话,我追到了女神

    之前追女神时候用的情话发送脚本,每次工作日上班开启电脑,就会唤醒QQ,然后发送一条情话给女神,自动唤醒QQ复制情话,不用担心遗忘,现在整理分享一下,妈妈再也不用担心我找不到对象了. 效果图: 很多人学 ...

  4. application.yml使用@符合问题:'@' that cannot start any token. (Do not use @ for indentation)

    在application配置文件中使用@出现异常: Exception in thread "main" while scanning for the next tokenfoun ...

  5. Linux学习笔记之linux的文件目录结构

    Linux环境下,一切皆文件! linux和windows系统有区别, windows是在各个硬盘上进行分区,分区里面又有好多文件, 而linux是采用树状的目录结构,所有都在根目录  /  下,所有 ...

  6. JS 获取验证码按钮改变案例

    HTML代码 <div class="box"> <label for="">手机号</label> <input t ...

  7. git使用-git仓库

    1.初始化版本库 git init 2.添加文件到版本库 git add git commit 3.查看仓库状态 git status 4.撤销初始化命令 rm -rf .git

  8. flask-sqlalchemy同字段多条件过滤

    举例 from sqlalchemy import or_,and_# from operator import or_, and_ allapp = AppServer.query.filter(a ...

  9. vue cli 中关于vue.config.js中chainWebpack的配置

    Vue CLI  的官方文档上写:调整webpack配置最简单的方式就是在vue.config.js中的configureWebpack选项提供一个对象. Vue CLI 内部的 webpack 配置 ...

  10. 解决 Could not resolve type alias 'com.deppon.gis.module.job.server.util.SdoGeometryTypeHandler'. 的办法

    单元测试提示下面错误: 核心错误: Failed to parse mapping resource: 'file [D:\490993\安装程序\DPAP2.1\dpap_v2.0.1\dpap_v ...