projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible bug when no args have been provided to the executable
[deliverable/binutils-gdb.git]
/
gdb
/
serial.h
diff --git
a/gdb/serial.h
b/gdb/serial.h
index b339f6627829ca1882cc98adf8cc1e098be653eb..c76ddbee108efe946db90578391dbe500a3ee2cb 100644
(file)
--- a/
gdb/serial.h
+++ b/
gdb/serial.h
@@
-1,5
+1,5
@@
/* Remote serial support interface definitions for GDB, the GNU Debugger.
/* Remote serial support interface definitions for GDB, the GNU Debugger.
- Copyright (C) 1992-201
6
Free Software Foundation, Inc.
+ Copyright (C) 1992-201
7
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-34,6
+34,9
@@
struct ui_file;
typedef void *serial_ttystate;
struct serial;
typedef void *serial_ttystate;
struct serial;
+struct serial_ops;
+
+/* Create a new serial for OPS. The new serial is not opened. */
/* Try to open NAME. Returns a new `struct serial *' on success, NULL
on failure. The new serial object has a reference count of 1.
/* Try to open NAME. Returns a new `struct serial *' on success, NULL
on failure. The new serial object has a reference count of 1.
@@
-44,6
+47,10
@@
struct serial;
extern struct serial *serial_open (const char *name);
extern struct serial *serial_open (const char *name);
+/* Open a new serial stream using OPS. */
+
+extern struct serial *serial_open_ops (const struct serial_ops *ops);
+
/* Returns true if SCB is open. */
extern int serial_is_open (struct serial *scb);
/* Returns true if SCB is open. */
extern int serial_is_open (struct serial *scb);
@@
-68,8
+75,8
@@
extern void serial_ref (struct serial *scb);
extern void serial_unref (struct serial *scb);
extern void serial_unref (struct serial *scb);
-/* Create a pipe, and put the read end in
files
[0], and the write end
- in
filde
[1]. Returns 0 for success, negative value for error (in
+/* Create a pipe, and put the read end in
FILDES
[0], and the write end
+ in
FILDES
[1]. Returns 0 for success, negative value for error (in
which case errno contains the error). */
extern int gdb_pipe (int fildes[2]);
which case errno contains the error). */
extern int gdb_pipe (int fildes[2]);
@@
-243,11
+250,6
@@
struct serial
buffer. -ve for sticky errors. */
unsigned char *bufp; /* Current byte */
unsigned char buf[BUFSIZ]; /* Da buffer itself */
buffer. -ve for sticky errors. */
unsigned char *bufp; /* Current byte */
unsigned char buf[BUFSIZ]; /* Da buffer itself */
- int current_timeout; /* (ser-unix.c termio{,s} only), last
- value of VTIME */
- int timeout_remaining; /* (ser-unix.c termio{,s} only), we
- still need to wait for this many
- more seconds. */
struct serial *next; /* Pointer to the next `struct serial *' */
int debug_p; /* Trace this serial devices operation. */
int async_state; /* Async internal state. */
struct serial *next; /* Pointer to the next `struct serial *' */
int debug_p; /* Trace this serial devices operation. */
int async_state; /* Async internal state. */
@@
-257,7
+259,7
@@
struct serial
struct serial_ops
{
struct serial_ops
{
- char *name;
+ c
onst c
har *name;
int (*open) (struct serial *, const char *name);
void (*close) (struct serial *);
int (*fdopen) (struct serial *, int fd);
int (*open) (struct serial *, const char *name);
void (*close) (struct serial *);
int (*fdopen) (struct serial *, int fd);
This page took
0.02468 seconds
and
4
git commands to generate.