Discussion:
[Wine] winedbg set breakpoint on recv
d***@guerrillamail.com
2014-05-16 13:49:39 UTC
Permalink
Hello everyone,

I would like to set a breakpoint on the recv function. However, when I run the following command in winedbg:

Wine-dbg>break recv
Breakpoint 1 at 0x... recv in libc.so.6

it sets a breakpoint in libc, instead of setting the breakpoint in ws2_32 which would have the recv function on windows (http://msdn.microsoft.com/en-us/library/windows/desktop/ms740121%28v=vs.85%29.aspx).

I am able to set breakpoints for WSARecv and WSARecvFrom:

Wine-dbg>break WSARecv
Breakpoint 2 at 0x... WSARecv in ws2_32

Wine-dbg>break WSARecvFrom
Breakpoint 3 at 0x... WSARecv
Bruno Jesus
2014-05-17 15:29:44 UTC
Permalink
Post by d***@guerrillamail.com
Hello everyone,
Wine-dbg>break recv
Breakpoint 1 at 0x... recv in libc.so.6
it sets a breakpoint in libc, instead of setting the breakpoint in ws2_32 which would have the recv function on windows (http://msdn.microsoft.com/en-us/library/windows/desktop/ms740121%28v=vs.85%29.aspx).
...
How do I set a breakpoint on the recv function in ws2_32?
To avoid conflicts in wine the function is called WS_recv:
http://source.winehq.org/source/dlls/ws2_32/socket.c#L4246
Post by d***@guerrillamail.com
Thanks in advance!
Best wishes,
Bruno

Loading...