Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
846 views
in Technique[技术] by (71.8m points)

gdb - gdb“数字无效的二进制运算”(gdb “Invalid binary operation on numbers”)

At work, while debugging our program with gdb, it sometimes repsonds to a simple "next" command with "Invalid binary operation on numbers".

(在工作中,使用gdb调试程序时,有时会响应一个简单的“下一个”命令,该命令“对数字进行无效的二进制运算”。)

Mighty annoying.

(强大的烦人。)

Googling finds absolutely no hints.

(谷歌搜索完全没有提示。)

It is C++, so perhaps that has something inside gdb confused in some way;

(它是C ++,所以也许gdb内部有些东西有些混乱;)

I have no clue.

(我没有任何线索。)

Anyone?

(任何人?)

  ask by Steve Biederman translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The only way I can think of that this could happen: you have some active display which requires GDB to evaluate some expression every time it stops, and that expression can't be evaluated, yielding Invalid binary operation on numbers error.

(我能想到的唯一方法是:您有一个活动的display ,需要GDB每次停止时都对其求值,并且该表达式无法求值,从而Invalid binary operation on numbers错误时产生Invalid binary operation on numbers 。)

Use info display to see current "auto display" expressions.

(使用info display可查看当前的“自动显示”表达式。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...