Re: winedbg set breakpoint on recv

Bruno Jesus <[email protected]> Sat, 17 May 2014 12:29:44 -0300
Newsgroups gmane.comp.emulators.wine.user
Message-ID <CALF_nURU0VYuGpQv9qKiem2phKNanbDgpMoPqxi5BBMg+zXrFQ@mail.gmail.com>
On Fri, May 16, 2014 at 10:49 AM,  <[email protected]> wrote:
> 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).
> ...
>
> 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

> Thanks in advance!

Best wishes,
Bruno