diff options
author | Hui Zhu <teawater@gmail.com> | 2012-12-18 07:01:58 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2012-12-18 07:01:58 +0000 |
commit | 2a9d5ccf7943dbe8e1ca5f6b425fce5aa60647f3 (patch) | |
tree | fad55e602a3f3a27ff86347cee85f1d233c3d33e /gdb/ui-file.h | |
parent | 3f453875a4675e487d0f25e15d512c16514e4a63 (diff) | |
download | gdb-2a9d5ccf7943dbe8e1ca5f6b425fce5aa60647f3.zip gdb-2a9d5ccf7943dbe8e1ca5f6b425fce5aa60647f3.tar.gz gdb-2a9d5ccf7943dbe8e1ca5f6b425fce5aa60647f3.tar.bz2 |
2012-12-18 Hui Zhu <hui_zhu@mentor.com>
* ui-file.c (ui_file): Add to_fseek.
(ui_file_new): Call set_ui_file_fseek.
(null_file_fseek, ui_file_fseek, set_ui_file_fseek,
stdio_file_fseek): New functions.
(stdio_file_new): Call set_ui_file_fseek.
* ui-file.h (ui_file_fseek_ftype): New typedef.
(set_ui_file_fseek, ui_file_fseek): New externs.
Diffstat (limited to 'gdb/ui-file.h')
-rw-r--r-- | gdb/ui-file.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ui-file.h b/gdb/ui-file.h index a3b97da..bb85713 100644 --- a/gdb/ui-file.h +++ b/gdb/ui-file.h @@ -79,6 +79,11 @@ typedef void (ui_file_delete_ftype) (struct ui_file * stream); extern void set_ui_file_data (struct ui_file *stream, void *data, ui_file_delete_ftype *delete); +typedef int (ui_file_fseek_ftype) (struct ui_file *stream, long offset, + int whence); +extern void set_ui_file_fseek (struct ui_file *stream, + ui_file_fseek_ftype *fseek_ptr); + extern void *ui_file_data (struct ui_file *file); @@ -113,6 +118,8 @@ extern char *ui_file_obsavestring (struct ui_file *file, extern long ui_file_read (struct ui_file *file, char *buf, long length_buf); +extern int ui_file_fseek (struct ui_file *file, long offset, int whence); + /* Create/open a memory based file. Can be used as a scratch buffer for collecting output. */ extern struct ui_file *mem_fileopen (void); |