projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace calls to abort() with calls to internal_error().
[deliverable/binutils-gdb.git]
/
gdb
/
remote-es.c
diff --git
a/gdb/remote-es.c
b/gdb/remote-es.c
index b433fe8e8083b94079f7ae3412b741191e6086cf..764af505ee1b91b5a1c69c19fd46dbeef5d14282 100644
(file)
--- a/
gdb/remote-es.c
+++ b/
gdb/remote-es.c
@@
-1,5
+1,5
@@
/* Memory-access and commands for remote es1800 processes, for GDB.
/* Memory-access and commands for remote es1800 processes, for GDB.
- Copyright (C) 1988, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1988, 1992
, 2001
Free Software Foundation, Inc.
This file is added to GDB to make it possible to do debugging via an
ES-1800 emulator. The code was originally written by Johan Holmberg
This file is added to GDB to make it possible to do debugging via an
ES-1800 emulator. The code was originally written by Johan Holmberg
@@
-104,140
+104,101
@@
#include "frame.h"
#include "inferior.h"
#include "target.h"
#include "frame.h"
#include "inferior.h"
#include "target.h"
-#include "wait.h"
#include "command.h"
#include "command.h"
+#include "symfile.h"
#include "remote-utils.h"
#include "gdbcore.h"
#include "serial.h"
/* Prototypes for local functions */
#include "remote-utils.h"
#include "gdbcore.h"
#include "serial.h"
/* Prototypes for local functions */
-static void
-es1800_child_detach PARAMS ((char *, int));
+static void es1800_child_detach (char *, int);
-static void
-es1800_child_open PARAMS ((char *, int));
+static void es1800_child_open (char *, int);
-static void
-es1800_transparent PARAMS ((char *, int));
+static void es1800_transparent (char *, int);
-static void
-es1800_create_inferior PARAMS ((char *, char *, char **));
+static void es1800_create_inferior (char *, char *, char **);
-static void
-es1800_load PARAMS ((char *, int));
+static void es1800_load (char *, int);
-static void
-es1800_kill PARAMS ((void));
+static void es1800_kill (void);
-static int
-verify_break PARAMS ((int));
+static int verify_break (int);
-static int
-es1800_remove_breakpoint PARAMS ((CORE_ADDR, char *));
+static int es1800_remove_breakpoint (CORE_ADDR, char *);
-static int
-es1800_insert_breakpoint PARAMS ((CORE_ADDR, char *));
+static int es1800_insert_breakpoint (CORE_ADDR, char *);
-static void
-es1800_files_info PARAMS ((struct target_ops *));
+static void es1800_files_info (struct target_ops *);
static int
static int
-es1800_xfer_inferior_memory
PARAMS (
(CORE_ADDR, char *, int, int,
-
struct target_ops *)
);
+es1800_xfer_inferior_memory (CORE_ADDR, char *, int, int,
+
struct mem_attrib *, struct target_ops *
);
-static void
-es1800_prepare_to_store PARAMS ((void));
+static void es1800_prepare_to_store (void);
-static int es1800_wait
PARAMS ((int, struct target_waitstatus *)
);
+static int es1800_wait
(int, struct target_waitstatus *
);
-static void es1800_resume
PARAMS ((int, int, enum target_signal)
);
+static void es1800_resume
(int, int, enum target_signal
);
-static void
-es1800_detach PARAMS ((char *, int));
+static void es1800_detach (char *, int);
-static void
-es1800_attach PARAMS ((char *, int));
+static void es1800_attach (char *, int);
-static int
-damn_b PARAMS ((char *));
+static int damn_b (char *);
-static void
-es1800_open PARAMS ((char *, int));
+static void es1800_open (char *, int);
-static void
-es1800_timer PARAMS ((void));
+static void es1800_timer (void);
-static void
-es1800_reset PARAMS ((char *));
+static void es1800_reset (char *);
-static void
-es1800_request_quit PARAMS ((void));
+static void es1800_request_quit (void);
-static int
-readchar PARAMS ((void));
+static int readchar (void);
-static void
-expect PARAMS ((char *, int));
+static void expect (char *, int);
-static void
-expect_prompt PARAMS ((void));
+static void expect_prompt (void);
-static void
-download PARAMS ((FILE *, int, int));
+static void download (FILE *, int, int);
#if 0
#if 0
-static void
-bfd_copy PARAMS ((bfd *, bfd *));
+static void bfd_copy (bfd *, bfd *);
#endif
#endif
-static void
-get_break_addr PARAMS ((int, CORE_ADDR *));
+static void get_break_addr (int, CORE_ADDR *);
-static int
-fromhex PARAMS ((int));
+static int fromhex (int);
-static int
-tohex PARAMS ((int));
+static int tohex (int);
-static void
-es1800_close PARAMS ((int));
+static void es1800_close (int);
-static void
-es1800_fetch_registers PARAMS ((void));
+static void es1800_fetch_registers (void);
-static void
-es1800_fetch_register PARAMS ((int));
+static void es1800_fetch_register (int);
-static void
-es1800_store_register PARAMS ((int));
+static void es1800_store_register (int);
-static void
-es1800_read_bytes PARAMS ((CORE_ADDR, char *, int));
+static void es1800_read_bytes (CORE_ADDR, char *, int);
-static void
-es1800_write_bytes PARAMS ((CORE_ADDR, char *, int));
+static void es1800_write_bytes (CORE_ADDR, char *, int);
-static void
-send_with_reply PARAMS ((char *, char *, int));
+static void send_with_reply (char *, char *, int);
-static void
-send_command PARAMS ((char *));
+static void send_command (char *);
-static void
-send PARAMS ((char *));
+static void send (char *);
-static void
-getmessage PARAMS ((char *, int));
+static void getmessage (char *, int);
-static void
-es1800_mourn_inferior PARAMS ((void));
+static void es1800_mourn_inferior (void);
-static void
-es1800_create_break_insn PARAMS ((char *, int));
+static void es1800_create_break_insn (char *, int);
-static void
-es1800_init_break PARAMS ((char *, int));
+static void es1800_init_break (char *, int);
/* Local variables */
/* Local variables */
@@
-288,7
+249,7
@@
static jmp_buf interrupt;
Rely on global variables: old_sigint(), interrupt */
static void
Rely on global variables: old_sigint(), interrupt */
static void
-es1800_request_quit ()
+es1800_request_quit (
void
)
{
/* restore original signalhandler */
signal (SIGINT, old_sigint);
{
/* restore original signalhandler */
signal (SIGINT, old_sigint);
@@
-301,8
+262,7
@@
es1800_request_quit ()
quit - return to '(esgdb)' prompt or continue */
static void
quit - return to '(esgdb)' prompt or continue */
static void
-es1800_reset (quit)
- char *quit;
+es1800_reset (char *quit)
{
char buf[80];
{
char buf[80];
@@
-329,9
+289,7
@@
es1800_reset (quit)
from_tty - says whether to be verbose or not */
static void
from_tty - says whether to be verbose or not */
static void
-es1800_open (name, from_tty)
- char *name;
- int from_tty;
+es1800_open (char *name, int from_tty)
{
char buf[PBUFSIZ];
char *p;
{
char buf[PBUFSIZ];
char *p;
@@
-360,14
+318,14
@@
es1800_open (name, from_tty)
es1800_saved_ttystate = SERIAL_GET_TTY_STATE (es1800_desc);
es1800_saved_ttystate = SERIAL_GET_TTY_STATE (es1800_desc);
- if ((fcflag = fcntl (
es1800_desc->fd
, F_GETFL, 0)) == -1)
+ if ((fcflag = fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_GETFL, 0)) == -1)
{
perror_with_name ("fcntl serial");
}
es1800_fc_save = fcflag;
fcflag = (fcflag & (FREAD | FWRITE)); /* mask out any funny stuff */
{
perror_with_name ("fcntl serial");
}
es1800_fc_save = fcflag;
fcflag = (fcflag & (FREAD | FWRITE)); /* mask out any funny stuff */
- if (fcntl (
es1800_desc->fd
, F_SETFL, fcflag) == -1)
+ if (fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_SETFL, fcflag) == -1)
{
perror_with_name ("fcntl serial");
}
{
perror_with_name ("fcntl serial");
}
@@
-462,21
+420,20
@@
es1800_open (name, from_tty)
quitting - are we quitting gdb now? */
static void
quitting - are we quitting gdb now? */
static void
-es1800_close (quitting)
- int quitting;
+es1800_close (int quitting)
{
if (es1800_desc != NULL)
{
printf ("\nClosing connection to emulator...\n");
if (SERIAL_SET_TTY_STATE (es1800_desc, es1800_saved_ttystate) < 0)
print_sys_errmsg ("warning: unable to restore tty state", errno);
{
if (es1800_desc != NULL)
{
printf ("\nClosing connection to emulator...\n");
if (SERIAL_SET_TTY_STATE (es1800_desc, es1800_saved_ttystate) < 0)
print_sys_errmsg ("warning: unable to restore tty state", errno);
- fcntl (
es1800_desc->fd
, F_SETFL, es1800_fc_save);
+ fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_SETFL, es1800_fc_save);
SERIAL_CLOSE (es1800_desc);
es1800_desc = NULL;
}
if (savename != NULL)
{
SERIAL_CLOSE (es1800_desc);
es1800_desc = NULL;
}
if (savename != NULL)
{
- free (savename);
+
x
free (savename);
}
savename = NULL;
}
savename = NULL;
@@
-504,9
+461,7
@@
es1800_close (quitting)
from_tty - says whether to be verbose or not */
static void
from_tty - says whether to be verbose or not */
static void
-es1800_attach (args, from_tty)
- char *args;
- int from_tty;
+es1800_attach (char *args, int from_tty)
{
error ("Cannot attach to pid %s, this feature is not implemented yet.",
args);
{
error ("Cannot attach to pid %s, this feature is not implemented yet.",
args);
@@
-524,9
+479,7
@@
es1800_attach (args, from_tty)
from_tty - says whether to be verbose or not */
static void
from_tty - says whether to be verbose or not */
static void
-es1800_detach (args, from_tty)
- char *args;
- int from_tty;
+es1800_detach (char *args, int from_tty)
{
if (args)
{
{
if (args)
{
@@
-545,10
+498,7
@@
es1800_detach (args, from_tty)
siggnal - the signal value to be given to the target (0 = no signal) */
static void
siggnal - the signal value to be given to the target (0 = no signal) */
static void
-es1800_resume (pid, step, siggnal)
- int pid;
- int step;
- enum target_signal siggnal;
+es1800_resume (int pid, int step, enum target_signal siggnal)
{
char buf[PBUFSIZ];
{
char buf[PBUFSIZ];
@@
-572,9
+522,7
@@
es1800_resume (pid, step, siggnal)
status - */
static int
status - */
static int
-es1800_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+es1800_wait (int pid, struct target_waitstatus *status)
{
unsigned char buf[PBUFSIZ];
int old_timeout = timeout;
{
unsigned char buf[PBUFSIZ];
int old_timeout = timeout;
@@
-647,8
+595,7
@@
es1800_wait (pid, status)
regno - the register to be fetched (fetch all registers if -1) */
static void
regno - the register to be fetched (fetch all registers if -1) */
static void
-es1800_fetch_register (regno)
- int regno;
+es1800_fetch_register (int regno)
{
char buf[PBUFSIZ];
int k;
{
char buf[PBUFSIZ];
int k;
@@
-685,7
+632,7
@@
es1800_fetch_register (regno)
Always fetches all registers. */
static void
Always fetches all registers. */
static void
-es1800_fetch_registers ()
+es1800_fetch_registers (
void
)
{
char buf[PBUFSIZ];
char SR_buf[PBUFSIZ];
{
char buf[PBUFSIZ];
char SR_buf[PBUFSIZ];
@@
-857,8
+804,7
@@
es1800_fetch_registers ()
FIXME: Return errno value. */
static void
FIXME: Return errno value. */
static void
-es1800_store_register (regno)
- int regno;
+es1800_store_register (int regno)
{
static char regtab[18][4] =
{
static char regtab[18][4] =
@@
-956,7
+902,7
@@
es1800_store_register (regno)
/* Prepare to store registers. */
static void
/* Prepare to store registers. */
static void
-es1800_prepare_to_store ()
+es1800_prepare_to_store (
void
)
{
/* Do nothing, since we can store individual regs */
}
{
/* Do nothing, since we can store individual regs */
}
@@
-964,8
+910,7
@@
es1800_prepare_to_store ()
/* Convert hex digit A to a number. */
static int
/* Convert hex digit A to a number. */
static int
-fromhex (a)
- int a;
+fromhex (int a)
{
if (a >= '0' && a <= '9')
{
{
if (a >= '0' && a <= '9')
{
@@
-990,8
+935,7
@@
fromhex (a)
/* Convert number NIB to a hex digit. */
static int
/* Convert number NIB to a hex digit. */
static int
-tohex (nib)
- int nib;
+tohex (int nib)
{
if (nib < 10)
{
{
if (nib < 10)
{
@@
-1010,15
+954,14
@@
tohex (nib)
memaddr - the target's address
myaddr - gdb's address
len - number of bytes
memaddr - the target's address
myaddr - gdb's address
len - number of bytes
- write - write if != 0 otherwise read */
+ write - write if != 0 otherwise read
+ tops - unused */
static int
static int
-es1800_xfer_inferior_memory (memaddr, myaddr, len, write, tops)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *tops; /* Unused */
+es1800_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len,
+ int write,
+ struct mem_attrib *attrib ATTRIBUTE_UNUSED,
+ struct target_ops *target ATTRIBUTE_UNUSED)
{
int origlen = len;
int xfersize;
{
int origlen = len;
int xfersize;
@@
-1053,10
+996,7
@@
es1800_xfer_inferior_memory (memaddr, myaddr, len, write, tops)
len - number of bytes */
static void
len - number of bytes */
static void
-es1800_write_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+es1800_write_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
char buf[PBUFSIZ];
int i;
{
char buf[PBUFSIZ];
int i;
@@
-1079,10
+1019,7
@@
es1800_write_bytes (memaddr, myaddr, len)
len - number of bytes */
static void
len - number of bytes */
static void
-es1800_read_bytes (memaddr, myaddr, len)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
+es1800_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
{
static int DB_tab[16] =
{8, 11, 14, 17, 20, 23, 26, 29, 34, 37, 40, 43, 46, 49, 52, 55};
{
static int DB_tab[16] =
{8, 11, 14, 17, 20, 23, 26, 29, 34, 37, 40, 43, 46, 49, 52, 55};
@@
-1094,7
+1031,7
@@
es1800_read_bytes (memaddr, myaddr, len)
if (len > PBUFSIZ / 2 - 1)
{
if (len > PBUFSIZ / 2 - 1)
{
-
abort (
);
+
internal_error (__FILE__, __LINE__, "failed internal consistency check"
);
}
if (len == 1) /* The emulator does not like expressions like: */
}
if (len == 1) /* The emulator does not like expressions like: */
@@
-1127,11
+1064,10
@@
es1800_read_bytes (memaddr, myaddr, len)
}
}
}
}
-/*
Information about the current target
*/
+/*
Display information about the current target. TOPS is unused.
*/
static void
static void
-es1800_files_info (tops)
- struct target_ops *tops; /* Unused */
+es1800_files_info (struct target_ops *tops)
{
printf ("ES1800 Attached to %s at %d baud in %s mode\n", savename, 19200,
MODE);
{
printf ("ES1800 Attached to %s at %d baud in %s mode\n", savename, 19200,
MODE);
@@
-1150,9
+1086,7
@@
es1800_files_info (tops)
the target_arch transfer vector, if we ever have one... */
static int
the target_arch transfer vector, if we ever have one... */
static int
-es1800_insert_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+es1800_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
{
int val;
{
int val;
@@
-1176,9
+1110,7
@@
es1800_insert_breakpoint (addr, contents_cache)
BREAKPOINT bytes. */
static int
BREAKPOINT bytes. */
static int
-es1800_remove_breakpoint (addr, contents_cache)
- CORE_ADDR addr;
- char *contents_cache;
+es1800_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
{
return (target_write_memory (addr, contents_cache,
{
return (target_write_memory (addr, contents_cache,
@@
-1189,9
+1121,7
@@
es1800_remove_breakpoint (addr, contents_cache)
Primitive datastructures containing the es1800 breakpoint instruction */
static void
Primitive datastructures containing the es1800 breakpoint instruction */
static void
-es1800_create_break_insn (ins, vec)
- char *ins;
- int vec;
+es1800_create_break_insn (char *ins, int vec)
{
if (vec == 15)
{
{
if (vec == 15)
{
@@
-1207,8
+1137,7
@@
es1800_create_break_insn (ins, vec)
vec - trap vector used for breakpoints */
static int
vec - trap vector used for breakpoints */
static int
-verify_break (vec)
- int vec;
+verify_break (int vec)
{
CORE_ADDR memaddress;
char buf[8];
{
CORE_ADDR memaddress;
char buf[8];
@@
-1224,21
+1153,19
@@
verify_break (vec)
{
memory_error (status, memaddress);
}
{
memory_error (status, memaddress);
}
- return (
STRCMP
(instr, buf));
+ return (
strcmp
(instr, buf));
}
return (-1);
}
/* get_break_addr ()
}
return (-1);
}
/* get_break_addr ()
- find address of breakpint routine
+ find address of breakp
o
int routine
vec - trap vector used for breakpoints
addrp - store the address here */
static void
vec - trap vector used for breakpoints
addrp - store the address here */
static void
-get_break_addr (vec, addrp)
- int vec;
- CORE_ADDR *addrp;
+get_break_addr (int vec, CORE_ADDR *addrp)
{
CORE_ADDR memaddress = 0;
int status;
{
CORE_ADDR memaddress = 0;
int status;
@@
-1275,7
+1202,7
@@
get_break_addr (vec, addrp)
/* Kill an inferior process */
static void
/* Kill an inferior process */
static void
-es1800_kill ()
+es1800_kill (
void
)
{
if (inferior_pid != 0)
{
{
if (inferior_pid != 0)
{
@@
-1294,9
+1221,7
@@
es1800_kill ()
FIXME Uses emulator overlay memory for trap routine */
static void
FIXME Uses emulator overlay memory for trap routine */
static void
-es1800_load (filename, from_tty)
- char *filename;
- int from_tty;
+es1800_load (char *filename, int from_tty)
{
FILE *instream;
{
FILE *instream;
@@
-1312,7
+1237,7
@@
es1800_load (filename, from_tty)
}
filename = tilde_expand (filename);
}
filename = tilde_expand (filename);
- make_cleanup (free, filename);
+ make_cleanup (
x
free, filename);
switch (es1800_load_format)
{
switch (es1800_load_format)
{
@@
-1393,7
+1318,7
@@
es1800_load (filename, from_tty)
system (buf);
}
system (buf);
}
- symbol_file_
command (filename, from_tty);
/* reading symbol table */
+ symbol_file_
add_main (filename, from_tty);
/* reading symbol table */
immediate_quit--;
}
immediate_quit--;
}
@@
-1402,9
+1327,7
@@
es1800_load (filename, from_tty)
#define NUMCPYBYTES 20
static void
#define NUMCPYBYTES 20
static void
-bfd_copy (from_bfd, to_bfd)
- bfd *from_bfd;
- bfd *to_bfd;
+bfd_copy (bfd *from_bfd, bfd *to_bfd)
{
asection *p, *new;
int i;
{
asection *p, *new;
int i;
@@
-1456,10
+1379,7
@@
bfd_copy (from_bfd, to_bfd)
env - the environment vector to pass */
static void
env - the environment vector to pass */
static void
-es1800_create_inferior (execfile, args, env)
- char *execfile;
- char *args;
- char **env;
+es1800_create_inferior (char *execfile, char *args, char **env)
{
int entry_pt;
int pid;
{
int entry_pt;
int pid;
@@
-1535,7
+1455,7
@@
es1800_create_inferior (execfile, args, env)
/* The process has died, clean up. */
static void
/* The process has died, clean up. */
static void
-es1800_mourn_inferior ()
+es1800_mourn_inferior (
void
)
{
remove_breakpoints ();
unpush_target (&es1800_child_ops);
{
remove_breakpoints ();
unpush_target (&es1800_child_ops);
@@
-1551,9
+1471,7
@@
es1800_mourn_inferior ()
read until string is found (== 0) */
static void
read until string is found (== 0) */
static void
-expect (string, nowait)
- char *string;
- int nowait;
+expect (char *string, int nowait)
{
char c;
char *p = string;
{
char c;
char *p = string;
@@
-1591,7
+1509,7
@@
expect (string, nowait)
/* Keep discarding input until we see the prompt. */
static void
/* Keep discarding input until we see the prompt. */
static void
-expect_prompt ()
+expect_prompt (
void
)
{
expect (">", 0);
}
{
expect (">", 0);
}
@@
-1604,7
+1522,7
@@
expect_prompt ()
/* read from stdin */
static int
/* read from stdin */
static int
-readchar ()
+readchar (
void
)
{
char buf[1];
{
char buf[1];
@@
-1625,7
+1543,7
@@
readchar ()
timeout stuff. */
static int
timeout stuff. */
static int
-readchar ()
+readchar (
void
)
{
int ch;
{
int ch;
@@
-1656,9
+1574,7
@@
readchar ()
len - size of buf */
static void
len - size of buf */
static void
-send_with_reply (string, buf, len)
- char *string, *buf;
- int len;
+send_with_reply (char *string, char *buf, int len)
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
@@
-1677,8
+1593,7
@@
send_with_reply (string, buf, len)
string - the es1800 command */
static void
string - the es1800 command */
static void
-send_command (string)
- char *string;
+send_command (char *string)
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
{
send (string);
SERIAL_WRITE (es1800_desc, "\r", 1);
@@
-1694,8
+1609,7
@@
send_command (string)
string - the es1800 command */
static void
string - the es1800 command */
static void
-send (string)
- char *string;
+send (char *string)
{
if (kiodebug)
{
{
if (kiodebug)
{
@@
-1710,9
+1624,7
@@
send (string)
len - size of buf */
static void
len - size of buf */
static void
-getmessage (buf, len)
- char *buf;
- int len;
+getmessage (char *buf, int len)
{
char *bp;
int c;
{
char *bp;
int c;
@@
-1753,10
+1665,7
@@
getmessage (buf, len)
}
static void
}
static void
-download (instream, from_tty, format)
- FILE *instream;
- int from_tty;
- int format;
+download (FILE *instream, int from_tty, int format)
{
char c;
char buf[160];
{
char c;
char buf[160];
@@
-1812,9
+1721,7
@@
download (instream, from_tty, format)
/*ARGSUSED */
static void
/*ARGSUSED */
static void
-es1800_transparent (args, from_tty)
- char *args;
- int from_tty;
+es1800_transparent (char *args, int from_tty)
{
int console;
struct sgttyb modebl;
{
int console;
struct sgttyb modebl;
@@
-1876,7
+1783,7
@@
es1800_transparent (args, from_tty)
perror_with_name ("ioctl console");
}
perror_with_name ("ioctl console");
}
- if ((fcflag = fcntl (
es1800_desc->fd
, F_GETFL, 0)) == -1)
+ if ((fcflag = fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_GETFL, 0)) == -1)
{
perror_with_name ("fcntl serial");
}
{
perror_with_name ("fcntl serial");
}
@@
-1884,7
+1791,7
@@
es1800_transparent (args, from_tty)
es1800_fc_save = fcflag;
fcflag = fcflag | FNDELAY;
es1800_fc_save = fcflag;
fcflag = fcflag | FNDELAY;
- if (fcntl (
es1800_desc->fd
, F_SETFL, fcflag) == -1)
+ if (fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_SETFL, fcflag) == -1)
{
perror_with_name ("fcntl serial");
}
{
perror_with_name ("fcntl serial");
}
@@
-1920,7
+1827,7
@@
es1800_transparent (args, from_tty)
perror_with_name ("FEL! read:");
}
perror_with_name ("FEL! read:");
}
- cc = read (
es1800_desc->fd
, inputbuf, inputcnt);
+ cc = read (
DEPRECATED_SERIAL_FD (es1800_desc)
, inputbuf, inputcnt);
if (cc != -1)
{
for (i = 0; i < cc;)
if (cc != -1)
{
for (i = 0; i < cc;)
@@
-1959,7
+1866,7
@@
es1800_transparent (args, from_tty)
close (console);
close (console);
- if (fcntl (
es1800_desc->fd
, F_SETFL, es1800_fc_save) == -1)
+ if (fcntl (
DEPRECATED_SERIAL_FD (es1800_desc)
, F_SETFL, es1800_fc_save) == -1)
{
perror_with_name ("FEL! fcntl");
}
{
perror_with_name ("FEL! fcntl");
}
@@
-1970,9
+1877,7
@@
es1800_transparent (args, from_tty)
#endif /* PROVIDE_TRANSPARENT */
static void
#endif /* PROVIDE_TRANSPARENT */
static void
-es1800_init_break (args, from_tty)
- char *args;
- int from_tty;
+es1800_init_break (char *args, int from_tty)
{
CORE_ADDR memaddress = 0;
char buf[PBUFSIZ];
{
CORE_ADDR memaddress = 0;
char buf[PBUFSIZ];
@@
-2038,17
+1943,13
@@
es1800_init_break (args, from_tty)
}
static void
}
static void
-es1800_child_open (arg, from_tty)
- char *arg;
- int from_tty;
+es1800_child_open (char *arg, int from_tty)
{
error ("Use the \"run\" command to start a child process.");
}
static void
{
error ("Use the \"run\" command to start a child process.");
}
static void
-es1800_child_detach (args, from_tty)
- char *args;
- int from_tty;
+es1800_child_detach (char *args, int from_tty)
{
if (args)
{
{
if (args)
{
@@
-2210,7
+2111,7
@@
Specify the serial device it is connected to (e.g. /dev/ttya).";
}
void
}
void
-_initialize_es1800 ()
+_initialize_es1800 (
void
)
{
init_es1800_ops ();
init_es1800_child_ops ();
{
init_es1800_ops ();
init_es1800_child_ops ();
This page took
0.032832 seconds
and
4
git commands to generate.