contains the gdb.Corefile object if a core file is loaded into
the inferior, otherwise, this contains None.
+* Guile API
+
+ ** Procedures 'memory-port-read-buffer-size',
+ 'set-memory-port-read-buffer-size!', 'memory-port-write-buffer-size',
+ and 'set-memory-port-write-buffer-size!' have been removed. They were
+ deprecated since GDB 10. Users who need to control the size of a
+ memory port's internal buffer can use the 'setvbuf' procedure.
+
*** Changes in GDB 17
* Debugging Linux programs that use x86-64 or x86-64 with 32-bit pointer
inclusive.
@end deffn
-@deffn {Scheme Procedure} memory-port-read-buffer-size memory-port
-Return the size of the read buffer of @code{<gdb:memory-port>}
-@var{memory-port}.
-
-This procedure is deprecated and will be removed in @value{GDBN} 11.
-It returns 0 when using Guile 2.2 or later.
-@end deffn
-
-@deffn {Scheme Procedure} set-memory-port-read-buffer-size! memory-port size
-Set the size of the read buffer of @code{<gdb:memory-port>}
-@var{memory-port} to @var{size}. The result is unspecified.
-
-This procedure is deprecated and will be removed in @value{GDBN} 11.
-When @value{GDBN} is built with Guile 2.2 or later, you can call
-@code{setvbuf} instead (@pxref{Buffering, @code{setvbuf},, guile, GNU
-Guile Reference Manual}).
-@end deffn
-
-@deffn {Scheme Procedure} memory-port-write-buffer-size memory-port
-Return the size of the write buffer of @code{<gdb:memory-port>}
-@var{memory-port}.
-
-This procedure is deprecated and will be removed in @value{GDBN} 11.
-It returns 0 when @value{GDBN} is built with Guile 2.2 or later.
-@end deffn
-
-@deffn {Scheme Procedure} set-memory-port-write-buffer-size! memory-port size
-Set the size of the write buffer of @code{<gdb:memory-port>}
-@var{memory-port} to @var{size}. The result is unspecified.
-
-This procedure is deprecated and will be removed in @value{GDBN} 11.
-When @value{GDBN} is built with Guile 2.2 or later, you can call
-@code{setvbuf} instead.
-@end deffn
-
A memory port is closed like any other port, with @code{close-port}.
Combined with Guile's @code{bytevectors}, memory ports provide a lot
return scm_list_2 (gdbscm_scm_from_ulongest (iomem->start),
gdbscm_scm_from_ulongest (iomem->end));
}
-
-/* (memory-port-read-buffer-size port) -> integer */
-
-static SCM
-gdbscm_memory_port_read_buffer_size (SCM port)
-{
- return scm_from_uint (0);
-}
-
-/* (set-memory-port-read-buffer-size! port size) -> unspecified
- An exception is thrown if read data is still buffered or if the port
- is unbuffered. */
-
-static SCM
-gdbscm_set_memory_port_read_buffer_size_x (SCM port, SCM size)
-{
- return scm_setvbuf (port, scm_from_utf8_symbol ("block"), size);
-}
-
-/* (memory-port-write-buffer-size port) -> integer */
-
-static SCM
-gdbscm_memory_port_write_buffer_size (SCM port)
-{
- return scm_from_uint (0);
-}
-
-/* (set-memory-port-write-buffer-size! port size) -> unspecified
- An exception is thrown if write data is still buffered or if the port
- is unbuffered. */
-
-static SCM
-gdbscm_set_memory_port_write_buffer_size_x (SCM port, SCM size)
-{
- return scm_setvbuf (port, scm_from_utf8_symbol ("block"), size);
-}
\f
/* Initialize gdb ports. */
"\
Return the memory range of the port as (start end)." },
- { "memory-port-read-buffer-size", 1, 0, 0,
- as_a_scm_t_subr (gdbscm_memory_port_read_buffer_size),
- "\
-Return the size of the read buffer for the memory port." },
-
- { "set-memory-port-read-buffer-size!", 2, 0, 0,
- as_a_scm_t_subr (gdbscm_set_memory_port_read_buffer_size_x),
- "\
-Set the size of the read buffer for the memory port.\n\
-\n\
- Arguments: port integer\n\
- Returns: unspecified." },
-
- { "memory-port-write-buffer-size", 1, 0, 0,
- as_a_scm_t_subr (gdbscm_memory_port_write_buffer_size),
- "\
-Return the size of the write buffer for the memory port." },
-
- { "set-memory-port-write-buffer-size!", 2, 0, 0,
- as_a_scm_t_subr (gdbscm_set_memory_port_write_buffer_size_x),
- "\
-Set the size of the write buffer for the memory port.\n\
-\n\
- Arguments: port integer\n\
- Returns: unspecified." },
-
END_FUNCTIONS
};