Discussion:
[Wine] winedbg set breakpoint on recv
d3xhkuo+bi5tjw
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... WSARecvFrom in ws2_32

How do I set a breakpoint on the recv function in ws2_32?

Thanks in advance!





----
Sent using GuerrillMail.com
Block or report abuse: https://www.guerrillamail.com/abuse/?a=Vkh6AEAVULEHmy6j%2BXAaegWJQtiX
Bruno Jesus
2014-05-17 15:29:44 UTC
Permalink
Post by d3xhkuo+bi5tjw
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 d3xhkuo+bi5tjw
Thanks in advance!
Best wishes,
Bruno

Loading...