码迷,mamicode.com
首页 > 数据库 > 详细

gdb我在我本机上p不了,在别人机子上可以

时间:2020-05-13 12:00:01      阅读:71      评论:0      收藏:0      [点我收藏+]

标签:inter   intern   spl   eset   char   bool   use   $1   别人   

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不了,在别人机子上可以

标签:inter   intern   spl   eset   char   bool   use   $1   别人   

原文地址:https://www.cnblogs.com/baofengc/p/12881275.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!