3 Star 10 Fork 7

Gitee 极速下载/librdkafka

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/edenhill/librdkafka
克隆/下载
.gdbmacros 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
Magnus Edenhill 提交于 2018-11-13 14:09 . Added gdbmacro for msg queues
# Print rd_kafka_msgq_t
define dump_msgq
set $rkmq = $arg0
set $rkm = $rkmq.rkmq_msgs.tqh_first
set $exp_msgid = 0
set $cnt = 0
while $rkm != 0
set $msgid = $rkm.rkm_u.producer.msgid
printf "#%d ((rd_kafka_msgq_t *)%p) msgid %llu\n", $cnt, $rkm, $msgid
if $exp_msgid != 0 && $exp_msgid != $msgid
printf " ^ WARNING: expected msgid %llu, not %llu\n", $exp_msgid, $msgid
end
set $exp_msgid = $msgid + 1
set $rkm = $rkm.rkm_link.tqe_next
set $cnt++
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/librdkafka.git
[email protected]:mirrors/librdkafka.git
mirrors
librdkafka
librdkafka
master

搜索帮助