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

Posted 暴风城

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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不了,在别人机子上可以的主要内容,如果未能解决你的问题,请参考以下文章

我的机子能上网,别人上不了,如何给他开代理让他通过我的代理IP上网?

如何访问远端的mysql数据库,root好像不能访问,数据库在别人的机子上。

同一局域网内的别人,访问不了我自己的机子,是啥原因?

用VB编了个小东东,生成exe文件后在别人的机子双击提示错误?如何解决

解决应用程序无法正常启动0xc0150002问题

nginx 无法访问图片问题