I use the WinPcap library with the C ++, Codelite, and GNU development tools. I have an IP4 structure describing an IP header. When I pass the packet data to the structure, I cannot see all this in the debugger, just random bits of data. For example, the source and destination addresses in the IP4 structure are not displayed in the debugger, but when I run the statements printf, they are displayed fine. Why does the debugger do this? Is the data type in the structure? I find that for the structure, you need to make sure that the data is valid. MinGW-4.4.1 and GNU gdb (GDB) 7.1
source
share