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"