[mingw] build error of the latest CVS
asmwarrior
asmwarrior@gmail.com
Wed Jun 13 09:52:00 GMT 2012
On 2012-6-13 17:39, Pedro Alves wrote:
> On 06/13/2012 10:22 AM, Pedro Alves wrote:
>
>> On 06/13/2012 01:22 AM, asmwarrior wrote:
>>
>>> On 2012-6-13 8:19, asmwarrior wrote:
>>>> f:\build_gdb\gdb\gdbgit\newbuild\gdb/../../gdb/gdb/mingw-hdep.c:125: undefined reference to `serial_for_fd'
>>> Ok, I found that this function body was deleted in:
>>>
>>> SHA-1: 877dce5b0d75d33cf93a4cda88a73cf828be5875
>>>
>>> * 2012-06-11 Pedro Alves <palves@redhat.com>
>>>
>>> Remove #if 0'd "connect" command, and unnecessary associated
>>> refcounting and serial reuse bits.
>>>
>>> * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
>>> * serial.c (last_serial_opened): Delete.
>>> (scb_base): Delete.
>>> (serial_open): Adjust.
>>> (serial_for_fd): Delete.
>>> (serial_fdopen_ops, do_serial_close): Adjust.
>>> (serial_fdopen_ops): Adjust.
>>
>> Whoops, I didn't notice there were other users of that function. I'll take a look.
>
> We can just restore the function. I'm testing a patch.
>
I firstly tried to use a hacker local patch to workaround the build error, but finally I found a hang problem caused by my local patch.
So, I revert you three commit about serial.c, and now gdb cvs Head build and works OK.
see: http://sourceware.org/bugzilla/show_bug.cgi?id=14227
More information about the Gdb
mailing list