gdb我在我本机上p不了,在别人机子上可以
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不了,在别人机子上可以的更多相关文章
- 怎么把宿主机上的镜像推送到hub上
怎么把宿主机上的镜像推送到hub上: 1.查看系统中存在的镜像: [root@izuf63bjp8ts8nkl13pxh1z devicemapper]# docker imagesREPOSITOR ...
- 利用Xshell5从本机上向Linux(虚拟机中)上传文件
Xmanager Enterprise 5云盘分享: http://pan.baidu.com/s/1jIkiQNW 1. 用ifconfig命令查看Linux的IP地址 2. 由于没有IP,所以我 ...
- mq本机上能用,其他机子上连上不mq
有一次遇到了记录下.原因是suse11重启后会自动开防火墙. 关了防火墙. rcSuSEfirewall2 stopShutting down the Firewall done
- 文件对象FSO应用 文件对象FSO应用
FileSystemObject对象被用来访问服务器上的文件系统.这个对象能够处理文件.文件夹和目录路径.用它来检索文件系统信息也是可能的. 下面的代码创建了一个文本文件,并写入了一些文本: dim ...
- 一句话介绍python线程、进程和协程
一.进程: Python的os模块封装了常见的系统调用,其中就包括fork.而fork是linux常用的产生子进程的方法,简言之是一个调用,两个返回. 在python中,以下的两个模块用于进程的使用. ...
- 用Eclipse和GDB构建ARM交叉编译和在线调试环境
我们在 Linux 主机中搭建我们的开发环境,使用 Ubuntu 10.04 LTS 为例. 搭建应用开发环境 安装 JRE Eclipse 依赖于Java 环境,所以必须先安装 JRE 或 JD ...
- gdb 远程调试android进程 -转
什么是gdb 它是gnu组织开发的一个强大的unix程序调试工具,我们可以用它来调试Android上的C.C++代码. 它主要可以做4件事情: 随心所欲地启动你的程序. 设置断点,程序执行到断点处会停 ...
- 40.Linux应用调试-使用gdb和gdbserver
1.gdb和gdbserver调试原理 通过linux虚拟机里的gdb,来向开发板里的gdbserver发送命令,比如设置断点,运行setp等,然后开发板上的gdbserver收到命令后,便会执行应用 ...
- 交叉编译问题记录-嵌入式环境下 GDB 的使用方法
本文为作者原创,转载请注明出处:https://www.cnblogs.com/leisure_chn/p/10693247.html 本文以嵌入式 Linux 环境下的 gdb 使用为例,记录交叉编 ...
随机推荐
- Java注解与反射
概要 本文主要是总结Java注解与反射的相关知识,加深自己对Java类动态语言的理解,同时为日后学习Spring打下基础. 注解: 什么是注解 Annotation的作用 不是程序本身,但是可以对程序 ...
- What is 测试金字塔?
我的女朋友是一名测试工程师,但她之前却不知道测试金字塔的概念,为此我曾经在家里的白板上画了一个图一层一层给她讲解过.我和同事在给团队面试测试和开发岗位时,也会必问到这个问题,想到可能有很多开发童鞋都不 ...
- 024_go语言中的缓冲通道
代码演示 package main import "fmt" func main() { messages := make(chan string, 2) messages < ...
- Docker 启动 Nginx
Docker 启动 Nginx 拉取镜像 docker pull nginx:1.17.9 启动步骤 # 创建 nginx 目录 mkdir -p /usr/local/nginx && ...
- Probabilistic PCA、Kernel PCA以及t-SNE
Probabilistic PCA 在之前的文章PCA与LDA介绍中介绍了PCA的基本原理,这一部分主要在此基础上进行扩展,在PCA中引入概率的元素,具体思路是对每个数据$\vec{x}_i$,假设$ ...
- DES算法的python3实现
DES原理 DES原理 这里不予以复述, 有很多优秀的博客 原理可以参考这篇博客 https://www.cnblogs.com/songwenlong/p/5944139.html DES实现 1. ...
- linux下免密登录配置
1.首先大家先开三台虚拟机 2.回到首层. 2.1:编辑文件: vim /etc/ssh/sshd_config 3:在master的linux上生成ssh密钥: ssh-keygen -t r ...
- Azure Application Gateway(二)对后端 VM 进行负载均衡
一,引言 上一节有讲到使用 Azure Application Gateway 为我们后端类型为 Web App 的 Demo 项目提供负载均衡,Azure Application Gateway 的 ...
- 阿里P8架构师大话设计模式,体会乐与怒的程序人生中值得回味一幕
本书特色 本书有两个特色,第一特色是重视过程.看了太多的计算机编程类的图书,大多数书籍都是集中在讲授优秀的解决方案或者一个完美的程序样例,但对这些解决方案和程序的演变过程却重视不够,好书之所以好,就是 ...
- Ubuntu18.04 安装 Fabric & 使用 Fabric 测试网络
前言: 本文介绍在 Ubuntu 18.04 中安装 Fabric, 并对 官方文档中的一个小案例(Using the Fabric test network)进行测试. 目的: 初步了解 Fabri ...