2017-02-16 5 views
0

をリンクする際、プログラムがコンパイルされ、完全に実行される「不正な命令が」、それは次のダイアログが出現し、実行の開始時に右破るだけGDBデバッガのスロー:GDBは-lcurl

enter image description here

私ができますContinueを押すだけでプログラムは正常に動作しますが、実行するたびにこれを行う必要があります。

私はthis MVS extensionでのLinux-ARMにリモートでクロスコンパイルしていると私は私がそれにかかわらず、例外設定で「スローされたときブレーク」以下のすべてのチェックボックスを無効にしようとしてい-lcurl

をリンクするときにのみ発生私はもはや悩まされることはありませんでしたが、それでもダイアログを出現させました。

答えて

0

私はCLIからの私のプログラムをデバッグしようとしたと私は同じ問題得たので、私はそれではなく、Linux上でリモートGBDだった、それはMVSいないことに気づいた、:その後

[email protected]:/.../Debug# gdb --exec=myapp 
GNU gdb (Raspbian 7.7.1+dfsg-5+rpi1) 7.7.1 
Copyright (C) 2014 Free Software Foundation, Inc. 
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> 
This is free software: you are free to change and redistribute it. 
There is NO WARRANTY, to the extent permitted by law. Type "show copying" 
and "show warranty" for details. 
This GDB was configured as "arm-linux-gnueabihf". 
Type "show configuration" for configuration details. 
For bug reporting instructions, please see: 
<http://www.gnu.org/software/gdb/bugs/>. 
Find the GDB manual and other documentation resources online at: 
<http://www.gnu.org/software/gdb/documentation/>. 
For help, type "help". 
Type "apropos word" to search for commands related to "word". 
(gdb) run 
Starting program: /.../Debug/myapp 
[Thread debugging using libthread_db enabled] 
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1". 
Cannot access memory at address 0x0 

Program received signal SIGILL, Illegal instruction. 
0x76a5fde8 in ??() from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 
(gdb) continue 
Continuing. 
Hello World 

[Inferior 1 (process 5879) exited normally] 
(gdb) 

を、私はすぐに見つかりましたそれはもうproccessを停止する私を気にしませんので、GDBはこの信号を無視させる回避策:

私はちょうど/etc/gdb/gdbinit

handle SIGILL nostopを追加しました