diff options
author | Pedro Alves <palves@redhat.com> | 2013-07-01 11:29:17 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-07-01 11:29:17 +0000 |
commit | d5749ee7156fa25f5c649d1288f074cbdd40303c (patch) | |
tree | 636233988592849f699927603196c68110eca986 /ld | |
parent | d8d2a3ee4770ba7eab50829dd1126f95ac33e5a6 (diff) | |
download | gdb-d5749ee7156fa25f5c649d1288f074cbdd40303c.zip gdb-d5749ee7156fa25f5c649d1288f074cbdd40303c.tar.gz gdb-d5749ee7156fa25f5c649d1288f074cbdd40303c.tar.bz2 |
[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.
Diffstat (limited to 'ld')
0 files changed, 0 insertions, 0 deletions