[GDBserver] hostio.c: Fallback to packet buffer size if PATH_MAX is not available.
authorPedro Alves <palves@redhat.com>
Mon, 1 Jul 2013 11:29:17 +0000 (11:29 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 1 Jul 2013 11:29:17 +0000 (11:29 +0000)
commitd5749ee7156fa25f5c649d1288f074cbdd40303c
tree636233988592849f699927603196c68110eca986
parentd8d2a3ee4770ba7eab50829dd1126f95ac33e5a6
[GDBserver] hostio.c: Fallback to packet buffer size if PATH_MAX is not available.

PATH_MAX is not defined on systems which have no limit on filename
length, such as GNU/Hurd.  As designed, the hostio RSP packets carry
the paths as parameters in the request/reply packets, which themselves
have an upper size limit, so lifting the filename limit completely
would require a redesign with new hostio packets.  While that doesn't
happen, we can at least support filename lengths as long as the packet
buffer can fit.

gdb/gdbserver/
2013-07-01  Pedro Alves  <palves@redhat.com>

* hostio.c (HOSTIO_PATH_MAX): Define.
(require_filename, handle_open, handle_unlink, handle_readlink):
Use it.
gdb/gdbserver/ChangeLog
gdb/gdbserver/hostio.c
This page took 0.025819 seconds and 4 git commands to generate.