[英]How does GDB determine the address to break at when you do “break function-name”?
[英]Why does GDB break when writing to the network?
每次我的程序到達write()
函數時,我都會收到此錯誤。 程序將再次繼續,但將在下一次write()
調用時停止。 當我在gdb之外運行這個程序時,它運行正常。
Program received signal SIGPIPE, Broken pipe.
0x00007ffff794b340 in __write_nocancel () at ../sysdeps/unix/syscall-template.S:81
81 ../sysdeps/unix/syscall-template.S: No such file or directory.
我被告知,當套接字從遠端關閉時會發生這種情況,但是會發生什么。
注意:服務器和客戶端都在同一台機器上運行,並且服務器是為我預先構建的,因此我無法訪問它的代碼。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.